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.
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.
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.