[Python-checkins] python/dist/src/Lib/distutils unixccompiler.py,1.38.6.1,1.38.6.2
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Fri, 23 May 2003 15:34:43 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1:/tmp/cvs-serv4016/Lib/distutils
Modified Files:
Tag: release22-maint
unixccompiler.py
Log Message:
Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use
-L in stead. Fixes #723495.
Index: unixccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v
retrieving revision 1.38.6.1
retrieving revision 1.38.6.2
diff -C2 -d -r1.38.6.1 -r1.38.6.2
*** unixccompiler.py 17 Mar 2002 19:47:39 -0000 1.38.6.1
--- unixccompiler.py 23 May 2003 22:34:39 -0000 1.38.6.2
***************
*** 267,270 ****
--- 267,273 ----
# 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