Mercurial > cpython-lru_cache-weakref
diff setup.py @ 16283:65c6a2998b1b legacy-trunk
Be extra careful with linking against libtermcap. This is now only done
if we can find the libtermcap in the usual places. Some platforms don't
have libtermcap, e.g. MacOSX.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Fri, 26 Jan 2001 18:23:02 +0000 |
| parents | ea4a2f3b266e |
| children | 4b72888c9e2f |
line wrap: on
line diff
--- a/setup.py Fri Jan 26 18:03:24 2001 +0000 +++ b/setup.py Fri Jan 26 18:23:02 2001 +0000 @@ -242,10 +242,15 @@ exts.append( Extension('rgbimg', ['rgbimgmodule.c']) ) # readline - if (self.compiler.find_library_file(lib_dirs, 'readline')): + if self.compiler.find_library_file(lib_dirs, 'readline'): + readline_libs = ['readline'] + if self.compiler.find_library_file(lib_dirs + + ['/usr/lib/termcap'], + 'termcap'): + readline_libs.append('termcap') exts.append( Extension('readline', ['readline.c'], library_dirs=['/usr/lib/termcap'], - libraries=['readline', 'termcap']) ) + libraries=readline_libs) ) # The crypt module is now disabled by default because it breaks builds # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
