Issue #28190: Cross compiling the _curses module does not use anymore

/usr/include/ncursesw as a headers search path.
This commit is contained in:
Xavier de Gaye 2016-12-13 16:04:14 +01:00
parent 3a4e989324
commit e13c3201fb
3 changed files with 8 additions and 3 deletions

4
configure vendored
View File

@ -15690,7 +15690,9 @@ fi
# first curses header check # first curses header check
ac_save_cppflags="$CPPFLAGS" ac_save_cppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" if test "$cross_compiling" = no; then
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
fi
for ac_header in curses.h ncurses.h for ac_header in curses.h ncurses.h
do : do :

View File

@ -4885,7 +4885,9 @@ fi
# first curses header check # first curses header check
ac_save_cppflags="$CPPFLAGS" ac_save_cppflags="$CPPFLAGS"
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" if test "$cross_compiling" = no; then
CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
fi
AC_CHECK_HEADERS(curses.h ncurses.h) AC_CHECK_HEADERS(curses.h ncurses.h)

View File

@ -1349,7 +1349,8 @@ class PyBuildExt(build_ext):
panel_library = 'panel' panel_library = 'panel'
if curses_library == 'ncursesw': if curses_library == 'ncursesw':
curses_defines.append(('HAVE_NCURSESW', '1')) curses_defines.append(('HAVE_NCURSESW', '1'))
curses_includes.append('/usr/include/ncursesw') if not cross_compiling:
curses_includes.append('/usr/include/ncursesw')
# Bug 1464056: If _curses.so links with ncursesw, # Bug 1464056: If _curses.so links with ncursesw,
# _curses_panel.so must link with panelw. # _curses_panel.so must link with panelw.
panel_library = 'panelw' panel_library = 'panelw'