mirror of
https://abf.rosa.ru/djam/kernel-5.15.git
synced 2025-02-23 18:42:55 +00:00
22 lines
746 B
Diff
22 lines
746 B
Diff
diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py
|
|
index 001be4f9d3b9..b49aa54baaad 100644
|
|
--- a/tools/perf/util/setup.py
|
|
+++ b/tools/perf/util/setup.py
|
|
@@ -31,6 +31,9 @@ cflags += ['-fno-strict-aliasing', '-Wno-write-strings', '-Wno-unused-parameter'
|
|
if cc != "clang":
|
|
cflags += ['-Wno-cast-function-type' ]
|
|
|
|
+libs = getenv('LIBS', '').split()
|
|
+libs += ['dl']
|
|
+
|
|
src_perf = getenv('srctree') + '/tools/perf'
|
|
build_lib = getenv('PYTHON_EXTBUILD_LIB')
|
|
build_tmp = getenv('PYTHON_EXTBUILD_TMP')
|
|
@@ -48,6 +51,7 @@ perf = Extension('perf',
|
|
include_dirs = ['util/include'],
|
|
extra_compile_args = cflags,
|
|
extra_objects = [libtraceevent, libapikfs],
|
|
+ libraries = libs,
|
|
)
|
|
|
|
setup(name='perf',
|