Mercurial > cpython-lru_cache-weakref
diff setup.py @ 64520:4ac8ae7e8022
Issue #4026: Make the fcntl extension build under AIX.
Patch by Sébastien Sablé.
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Tue, 07 Sep 2010 14:52:42 +0000 |
| parents | 7e0d866ca871 |
| children | 9151d5faae3d |
line wrap: on
line diff
--- a/setup.py Tue Sep 07 13:24:38 2010 +0000 +++ b/setup.py Tue Sep 07 14:52:42 2010 +0000 @@ -499,7 +499,11 @@ # supported...) # fcntl(2) and ioctl(2) - exts.append( Extension('fcntl', ['fcntlmodule.c']) ) + libs = [] + if (config_h_vars.get('FLOCK_NEEDS_LIBBSD', False)): + # May be necessary on AIX for flock function + libs = ['bsd'] + exts.append( Extension('fcntl', ['fcntlmodule.c'], libraries=libs) ) # pwd(3) exts.append( Extension('pwd', ['pwdmodule.c']) ) # grp(3)
