Removed an unneeded patch for Perf

perf-python-ext-link-with-dl.patch
This commit is contained in:
Evgenii Shatokhin 2019-07-16 18:52:15 +03:00
parent 41549c8479
commit 06fd3cb1e3
2 changed files with 0 additions and 26 deletions

View file

@ -164,10 +164,6 @@ Patch1: https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{k
# ROSA-specific patches
# Adds explicit linking of the Perf Python extension with libdl, thus fixing
# the build.
Patch100: perf-python-ext-link-with-dl.patch
# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid

View file

@ -1,22 +0,0 @@
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',