kernel-5.15/perf-python-ext-link-with-dl.patch

23 lines
782 B
Diff
Raw Normal View History

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',