view patches/python-2.4.5-gcc-R.patch @ 6512:ccc20ae889ca default tip guix

mingw::guile-2.0.7 builds.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 24 Mar 2016 08:03:39 +0100
parents dcf6c618308d
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