Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Dont search hardcoded paths, we might be doing a cross-build |
| 2 | Use '=' in-front to let compiler append sysroot, if it can |
| 3 | |
| 4 | Should fix things like |
| 5 | |
| 6 | configure:6972: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 -DNDEBUG -fno-inline -D__SOFTFP__ --sysroot=/build/v2013.06/build/tmp-angstrom_v2013_06-eglibc/sysroots/beaglebone -c -O2 -pipe -g -feliminate-unused-debug-types -I/usr/include/ncursesw conftest.c >&5 |
| 7 | cc1: warning: include location "/usr/include/ncursesw" is unsafe for cross-compilation [-Wpoison-system-directories] |
| 8 | |
| 9 | |
| 10 | Signed-off-by: Khem Raj |
| 11 | Upstream-Status: Pending |
| 12 | |
| 13 | |
| 14 | Index: Python-3.3.2/setup.py |
| 15 | =================================================================== |
| 16 | --- Python-3.3.2.orig/setup.py 2013-07-30 01:30:48.000000000 -0700 |
| 17 | +++ Python-3.3.2/setup.py 2013-07-30 01:41:11.697862723 -0700 |
| 18 | @@ -1210,7 +1210,7 @@ |
| 19 | panel_library = 'panel' |
| 20 | if curses_library == 'ncursesw': |
| 21 | curses_defines.append(('HAVE_NCURSESW', '1')) |
| 22 | - curses_includes.append('/usr/include/ncursesw') |
| 23 | + curses_includes.append('=/usr/include/ncursesw') |
| 24 | # Bug 1464056: If _curses.so links with ncursesw, |
| 25 | # _curses_panel.so must link with panelw. |
| 26 | panel_library = 'panelw' |
| 27 | @@ -1819,7 +1819,7 @@ |
| 28 | if host_platform == 'darwin': |
| 29 | # OS X 10.5 comes with libffi.dylib; the include files are |
| 30 | # in /usr/include/ffi |
| 31 | - inc_dirs.append('/usr/include/ffi') |
| 32 | + inc_dirs.append('=/usr/include/ffi') |
| 33 | |
| 34 | ffi_inc = [sysconfig.get_config_var("LIBFFI_INCLUDEDIR")] |
| 35 | if not ffi_inc or ffi_inc[0] == '': |