[Patches] [ python-Patches-642019 ] gcc-X.Y not recognized as gcc

noreply@sourceforge.net noreply@sourceforge.net
Thu, 21 Nov 2002 10:39:05 -0800


Patches item #642019, was opened at 2002-11-21 18:39
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=642019&group_id=5470

Category: Distutils and setup.py
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Nobody/Anonymous (nobody)
Summary: gcc-X.Y not recognized as gcc

Initial Comment:
Using more than one compiler on a system named like
gcc<foo>, gcc is not recognized by
distutils/unixccompiler. The section is described as a
hack, so this patch doesn't seem to make it worse:

--- Lib/distutils/unixccompiler.py
+++ Lib/distutils/unixccompiler.py
@@ -201,7 +201,7 @@
         if sys.platform[:6] == "darwin":
             # MacOSX's linker doesn't understand the
-R flag at all
             return "-L" + dir
-        elif compiler == "gcc" or compiler == "g++":
+        elif compiler[:3] == "gcc" or compiler[:3] ==
"g++":
             return "-Wl,-R" + dir
         else:
             return "-R" + dir


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=642019&group_id=5470