Mercurial > cpython-lru_cache-weakref
diff setup.py @ 39392:b50268f46fff 2.4
[Patch #1464056] Ensure that we use the panelw library when linking with ncursesw
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Mon, 07 Aug 2006 00:37:19 +0000 |
| parents | 72a720dd64fb |
| children | 693ff5d73412 |
line wrap: on
line diff
--- a/setup.py Sun Aug 06 22:10:11 2006 +0000 +++ b/setup.py Mon Aug 07 00:37:19 2006 +0000 @@ -681,8 +681,12 @@ # Curses support, requiring the System V version of curses, often # provided by the ncurses library. + panel_library = 'panel' if (self.compiler.find_library_file(lib_dirs, 'ncursesw')): curses_libs = ['ncursesw'] + # Bug 1464056: If _curses.so links with ncursesw, + # _curses_panel.so must link with panelw. + panel_library = 'panelw' exts.append( Extension('_curses', ['_cursesmodule.c'], libraries = curses_libs) ) elif (self.compiler.find_library_file(lib_dirs, 'ncurses')): @@ -705,9 +709,9 @@ # If the curses module is enabled, check for the panel module if (module_enabled(exts, '_curses') and - self.compiler.find_library_file(lib_dirs, 'panel')): + self.compiler.find_library_file(lib_dirs, panel_library)): exts.append( Extension('_curses_panel', ['_curses_panel.c'], - libraries = ['panel'] + curses_libs) ) + libraries = [panel_library] + curses_libs) ) # Andrew Kuchling's zlib module. Note that some versions of zlib
