From: Jack Jansen Date: Fri, 23 May 2003 22:34:39 +0000 (+0000) Subject: Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use X-Git-Tag: v2.2.3~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9ac7201fd09eef09d6d9a4bae6454ee8856ef78;p=thirdparty%2FPython%2Fcpython.git Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use -L in stead. Fixes #723495. --- diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 7e63c56afe54..f7d386e98466 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -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: diff --git a/Misc/NEWS b/Misc/NEWS index 76302b26c9f1..c32d6909731c 100644 --- 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