]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 23 May 2003 22:34:39 +0000 (22:34 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 23 May 2003 22:34:39 +0000 (22:34 +0000)
-L in stead. Fixes #723495.

Lib/distutils/unixccompiler.py
Misc/NEWS

index 7e63c56afe54375a74a1bdaa7f71bfa8ae5b099a..f7d386e984666af840fa3c04935f6d86bbf3a114 100644 (file)
@@ -266,6 +266,9 @@ class UnixCCompiler (CCompiler):
         # the configuration data stored in the Python installation, so
         # we use this hack.
         compiler = os.path.basename(sysconfig.get_config_var("CC"))
+        if sys.platform[:6] == "darwin":
+            # MacOSX's linker doesn't understand the -R flag at all
+            return "-L" + dir
         if compiler == "gcc" or compiler == "g++":
             return "-Wl,-R" + dir
         else:
index 76302b26c9f1f8d838951d571613f115522c0462..c32d6909731c1fc0a4c9032b01e4c2522ca56144 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -178,6 +178,9 @@ Release date: 22-May-2003
 
 - Distutils: Translate spaces in the machine name to underscores
   (Power Macintosh -> Power_Macintosh)
+  
+- Distutils: on Mac OS X don't use -R for runtime_library_dirs, use
+  -L in stead (#723495). 
 
 - Backported SF #658233, continuation lines in .mo file metadata
   crashed gettext.GNUTranslations parsing.  Also, export more symbols