[Python-checkins] python/dist/src/Lib/distutils unixccompiler.py,1.52,1.53

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sat, 31 May 2003 01:09:23 -0700


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1:/tmp/cvs-serv2039

Modified Files:
	unixccompiler.py 
Log Message:
Patch #740301: Add +s when linking shared libraries on HP-UX, use -L
for the library path.


Index: unixccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** unixccompiler.py	18 Apr 2003 17:27:47 -0000	1.52
--- unixccompiler.py	31 May 2003 08:09:21 -0000	1.53
***************
*** 204,209 ****
              # MacOSX's linker doesn't understand the -R flag at all
              return "-L" + dir
!         elif compiler[:3] == "gcc" or compiler[:3] == "g++":
!             return "-Wl,-R" + dir
          else:
              return "-R" + dir
--- 204,211 ----
              # MacOSX's linker doesn't understand the -R flag at all
              return "-L" + dir
!       elif sys.platform[:5] == "hp-ux":
!             return "+s -L" + dir
!       elif compiler[:3] == "gcc" or compiler[:3] == "g++":
!           return "-Wl,-R" + dir
          else:
              return "-R" + dir