2016-07-26 11:24:24 +03:00
|
|
|
diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py
|
2018-07-05 21:40:11 +03:00
|
|
|
index 001be4f9d3b9..b49aa54baaad 100644
|
2016-07-26 11:24:24 +03:00
|
|
|
--- a/tools/perf/util/setup.py
|
|
|
|
+++ b/tools/perf/util/setup.py
|
2018-07-05 21:40:11 +03:00
|
|
|
@@ -31,6 +31,9 @@ cflags += ['-fno-strict-aliasing', '-Wno-write-strings', '-Wno-unused-parameter'
|
|
|
|
if cc != "clang":
|
|
|
|
cflags += ['-Wno-cast-function-type' ]
|
2016-07-26 11:24:24 +03:00
|
|
|
|
|
|
|
+libs = getenv('LIBS', '').split()
|
|
|
|
+libs += ['dl']
|
|
|
|
+
|
|
|
|
src_perf = getenv('srctree') + '/tools/perf'
|
|
|
|
build_lib = getenv('PYTHON_EXTBUILD_LIB')
|
|
|
|
build_tmp = getenv('PYTHON_EXTBUILD_TMP')
|
2018-07-05 21:40:11 +03:00
|
|
|
@@ -48,6 +51,7 @@ perf = Extension('perf',
|
2016-07-26 11:24:24 +03:00
|
|
|
include_dirs = ['util/include'],
|
|
|
|
extra_compile_args = cflags,
|
|
|
|
extra_objects = [libtraceevent, libapikfs],
|
|
|
|
+ libraries = libs,
|
|
|
|
)
|
|
|
|
|
|
|
|
setup(name='perf',
|