diff options
Diffstat (limited to 'tools/perf/util/setup.py')
-rw-r--r-- | tools/perf/util/setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/setup.py b/tools/perf/util/setup.py index 1833103768cb..c8680984d2d6 100644 --- a/tools/perf/util/setup.py +++ b/tools/perf/util/setup.py | |||
@@ -22,6 +22,7 @@ cflags = getenv('CFLAGS', '').split() | |||
22 | # switch off several checks (need to be at the end of cflags list) | 22 | # switch off several checks (need to be at the end of cflags list) |
23 | cflags += ['-fno-strict-aliasing', '-Wno-write-strings', '-Wno-unused-parameter' ] | 23 | cflags += ['-fno-strict-aliasing', '-Wno-write-strings', '-Wno-unused-parameter' ] |
24 | 24 | ||
25 | src_perf = getenv('srctree') + '/tools/perf' | ||
25 | build_lib = getenv('PYTHON_EXTBUILD_LIB') | 26 | build_lib = getenv('PYTHON_EXTBUILD_LIB') |
26 | build_tmp = getenv('PYTHON_EXTBUILD_TMP') | 27 | build_tmp = getenv('PYTHON_EXTBUILD_TMP') |
27 | libtraceevent = getenv('LIBTRACEEVENT') | 28 | libtraceevent = getenv('LIBTRACEEVENT') |
@@ -30,6 +31,9 @@ libapikfs = getenv('LIBAPI') | |||
30 | ext_sources = [f.strip() for f in file('util/python-ext-sources') | 31 | ext_sources = [f.strip() for f in file('util/python-ext-sources') |
31 | if len(f.strip()) > 0 and f[0] != '#'] | 32 | if len(f.strip()) > 0 and f[0] != '#'] |
32 | 33 | ||
34 | # use full paths with source files | ||
35 | ext_sources = map(lambda x: '%s/%s' % (src_perf, x) , ext_sources) | ||
36 | |||
33 | perf = Extension('perf', | 37 | perf = Extension('perf', |
34 | sources = ext_sources, | 38 | sources = ext_sources, |
35 | include_dirs = ['util/include'], | 39 | include_dirs = ['util/include'], |