1. Armin Rigo
  2. cpython-withatomic

Commits

Jack Jansen  committed 1c32d42

Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use
-L in stead. Fixes #723495.

  • Participants
  • Parent commits 387d7c2
  • Branches 2.2

Comments (0)

Files changed (2)

File Lib/distutils/unixccompiler.py

View file
         # 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:

File Misc/NEWS

View file
 
 - 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