[Python-bugs-list] [ python-Bugs-723495 ] runtime_library_dirs broken under OS X
SourceForge.net
noreply@sourceforge.net
Fri, 23 May 2003 15:46:56 -0700
Bugs item #723495, was opened at 2003-04-18 06:41
Message generated for change (Comment added) made by jackjansen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=723495&group_id=5470
Category: Distutils
Group: Python 2.2.2
>Status: Closed
>Resolution: Fixed
Priority: 7
Submitted By: Stuart Bishop (zenzen)
Assigned to: Jack Jansen (jackjansen)
Summary: runtime_library_dirs broken under OS X
Initial Comment:
gcc and ld on OSX don't seem to support the -R option, breaking
runtime_library_dirs and any distutils installed extensions that require
it.
I've only checked Python 2.2.2 so far.
----------------------------------------------------------------------
>Comment By: Jack Jansen (jackjansen)
Date: 2003-05-24 00:46
Message:
Logged In: YES
user_id=45365
Fixed in unixccompiler rev 1.38.6.2.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2003-04-24 15:15
Message:
Logged In: YES
user_id=45365
Ok, I'll fix if there's a 2.2.3 release upcoming. Thanks for the report!
----------------------------------------------------------------------
Comment By: Stuart Bishop (zenzen)
Date: 2003-04-24 07:41
Message:
Logged In: YES
user_id=46639
Yup - that looks like all that is needed to be done.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2003-04-18 13:35
Message:
Logged In: YES
user_id=45365
It looks like backporting the rev. 1.48 fix to Lib/distutils/unixccompiler.py should do the trick. I've attached the patch that should do the trick, if you could try this that would be helpful.
----------------------------------------------------------------------
Comment By: Stuart Bishop (zenzen)
Date: 2003-04-18 13:08
Message:
Logged In: YES
user_id=46639
Looks like this has been fixed in 2.3a2:
if sys.platform[:6] == "darwin":
# MacOSX's linker doesn't understand the -R flag at all
return "-L" + dir
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
return "-Wl,-R" + dir
else:
return "-R" + dir
I can't find a bug report or patch on this fix, and I don't know if it is in any
2.2.x branch.
----------------------------------------------------------------------
Comment By: Jack Jansen (jackjansen)
Date: 2003-04-18 10:58
Message:
Logged In: YES
user_id=45365
Could you elaborate a bit on what breaks, and/or give an example that breaks?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=723495&group_id=5470