kernel/perf-python-ext-link-with-dl.patch
Evgenii Shatokhin b6b23129ad New build model for the kernel (ported from kernel-4.6 project)
See the commits 05a8c4904699..16da528365de in
https://abf.io/kernels_stable/kernel-4.6.

Hightlights:
* New build model: everything in a single project.
* PAE by default on i586. No non-PAE flavours remain.
* SELinux is now built in (disabled by default).
* Dropped ndiswrapper (can be built separately if it is really needed).
2016-08-16 17:51:35 +03:00

20 lines
775 B
Diff

--- linux-3.14/tools/perf/util/setup.py 2014-07-11 18:40:34.927029845 +0400
+++ linux-3.14/tools/perf/util/setup.py.new 2014-07-11 18:38:50.000000000 +0400
@@ -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']
+
build_lib = getenv('PYTHON_EXTBUILD_LIB')
build_tmp = getenv('PYTHON_EXTBUILD_TMP')
libtraceevent = getenv('LIBTRACEEVENT')
@@ -35,6 +38,7 @@ perf = Extension('perf',
include_dirs = ['util/include'],
extra_compile_args = cflags,
extra_objects = [libtraceevent, libapikfs],
+ libraries = libs,
)
setup(name='perf',