[Python-checkins] python/dist/src/Lib/distutils unixccompiler.py,1.47,1.48
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Wed, 09 Oct 2002 14:37:21 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv14334
Modified Files:
unixccompiler.py
Log Message:
MacOSX linker doesn't understand -R flag at all, no matter how you feed it
the flag. Punt and return a -L flag instead (returning "" gums up the
command to be forked).
Index: unixccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** unixccompiler.py 9 Sep 2002 12:16:58 -0000 1.47
--- unixccompiler.py 9 Oct 2002 21:37:18 -0000 1.48
***************
*** 197,201 ****
# we use this hack.
compiler = os.path.basename(sysconfig.get_config_var("CC"))
! if compiler == "gcc" or compiler == "g++":
return "-Wl,-R" + dir
else:
--- 197,204 ----
# 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
! elif compiler == "gcc" or compiler == "g++":
return "-Wl,-R" + dir
else: