mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
1b7155f7de
Fix the following build error: GEN python/perf.so In file included from util/evsel.h:10, from util/python.c:6: util/hist.h:106:18: error: newt.h: No such file or directory error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1 make: *** [python/perf.so] Error 1 by passing BASIC_CFLAGS to setup.py. BASIC_CFLAGS variable contains the -DNO_NEWT_SUPPORT switch which prevents building python c extension with newt. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> LKML-Reference: <20110329180236.GA19366@erda.amd.com> Signed-off-by: Robert Richter <robert.richter@amd.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
25 lines
764 B
Python
25 lines
764 B
Python
#!/usr/bin/python2
|
|
|
|
from distutils.core import setup, Extension
|
|
from os import getenv
|
|
|
|
cflags = ['-fno-strict-aliasing', '-Wno-write-strings']
|
|
cflags += getenv('CFLAGS', '').split()
|
|
|
|
perf = Extension('perf',
|
|
sources = ['util/python.c', 'util/ctype.c', 'util/evlist.c',
|
|
'util/evsel.c', 'util/cpumap.c', 'util/thread_map.c',
|
|
'util/util.c', 'util/xyarray.c', 'util/cgroup.c'],
|
|
include_dirs = ['util/include'],
|
|
extra_compile_args = cflags,
|
|
)
|
|
|
|
setup(name='perf',
|
|
version='0.1',
|
|
description='Interface with the Linux profiling infrastructure',
|
|
author='Arnaldo Carvalho de Melo',
|
|
author_email='acme@redhat.com',
|
|
license='GPLv2',
|
|
url='http://perf.wiki.kernel.org',
|
|
ext_modules=[perf])
|