[pypy-commit] pypy ppc-jit-backend: For ncurses, use libncurses if it exists.
edelsohn
noreply at buildbot.pypy.org
Mon Aug 27 02:21:26 CEST 2012
Author: edelsohn
Branch: ppc-jit-backend
Changeset: r56883:ca90b7fb0f29
Date: 2012-08-26 20:21 -0400
http://bitbucket.org/pypy/pypy/changeset/ca90b7fb0f29/
Log: For ncurses, use libncurses if it exists.
diff --git a/pypy/module/_minimal_curses/fficurses.py b/pypy/module/_minimal_curses/fficurses.py
--- a/pypy/module/_minimal_curses/fficurses.py
+++ b/pypy/module/_minimal_curses/fficurses.py
@@ -13,6 +13,7 @@
_CYGWIN = platform == 'cygwin'
_NCURSES_CURSES = os.path.isfile("/usr/include/ncurses/curses.h")
+_LIBNCURSES = os.path.isfile("/usr/lib/libncurses.a")
if _CYGWIN or _NCURSES_CURSES:
eci = ExternalCompilationInfo(
@@ -22,7 +23,7 @@
else:
eci = ExternalCompilationInfo(
includes = ['curses.h', 'term.h'],
- libraries = ['curses'],
+ libraries = ['ncurses' if _LIBNCURSES else 'curses'],
)
rffi_platform.verify_eci(eci)
More information about the pypy-commit
mailing list