mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-24 11:02:55 +00:00
23 lines
782 B
Diff
23 lines
782 B
Diff
![]() |
diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py
|
||
|
index c868098..61c98a9 100644
|
||
|
--- a/tools/perf/util/setup.py
|
||
|
+++ b/tools/perf/util/setup.py
|
||
|
@@ -22,6 +22,9 @@ cflags = getenv('CFLAGS', '').split()
|
||
|
# switch off several checks (need to be at the end of cflags list)
|
||
|
cflags += ['-fno-strict-aliasing', '-Wno-write-strings', '-Wno-unused-parameter' ]
|
||
|
|
||
|
+libs = getenv('LIBS', '').split()
|
||
|
+libs += ['dl']
|
||
|
+
|
||
|
src_perf = getenv('srctree') + '/tools/perf'
|
||
|
build_lib = getenv('PYTHON_EXTBUILD_LIB')
|
||
|
build_tmp = getenv('PYTHON_EXTBUILD_TMP')
|
||
|
@@ -39,6 +42,7 @@ perf = Extension('perf',
|
||
|
include_dirs = ['util/include'],
|
||
|
extra_compile_args = cflags,
|
||
|
extra_objects = [libtraceevent, libapikfs],
|
||
|
+ libraries = libs,
|
||
|
)
|
||
|
|
||
|
setup(name='perf',
|