[Patches] [ python-Patches-642019 ] gcc-X.Y not recognized as gcc
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 21 Nov 2002 12:33:49 -0800
Patches item #642019, was opened at 2002-11-21 19: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: Closed
>Resolution: Accepted
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
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2002-11-21 21:33
Message:
Logged In: YES
user_id=21627
Thanks, committed as unixccompiler.py 1.51.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=642019&group_id=5470