[Python-bugs-list] [ python-Bugs-723495 ] runtime_library_dirs broken under OS X

SourceForge.net noreply@sourceforge.net
Fri, 18 Apr 2003 04:35:39 -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: Open
Resolution: None
Priority: 5
Submitted By: Stuart Bishop (zenzen)
Assigned to: Nobody/Anonymous (nobody)
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-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