Mercurial > gub
view patches/python-2.4.5-gcc-R.patch @ 6193:dcf6c618308d
tools::python: -lcrypt, gcc -R build fixes.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Sun, 26 Aug 2012 16:21:18 +0200 |
parents | |
children |
line wrap: on
line source
--- python-2.4.5/Lib/distutils/unixccompiler.py~ 2012-08-26 12:32:13.869439859 +0200 +++ python-2.4.5/Lib/distutils/unixccompiler.py 2012-08-26 12:33:12.678823232 +0200 @@ -250,6 +250,8 @@ # the configuration data stored in the Python installation, so # we use this hack. compiler = os.path.basename(sysconfig.get_config_var("CC")) + if not compiler: + compiler = os.environ['CC'] if sys.platform[:6] == "darwin": # MacOSX's linker doesn't understand the -R flag at all return "-L" + dir