]> granicus.if.org Git - python/commitdiff
Use $(CC) -G to link shared libraries on Solaris.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 10 Sep 2001 15:34:42 +0000 (15:34 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 10 Sep 2001 15:34:42 +0000 (15:34 +0000)
configure
configure.in

index 6ab0a851344f8411c83f9f38ce7986c1e4b582e5..7f1c22f45473f840da36439fdc36a331f83cab7e 100755 (executable)
--- a/configure
+++ b/configure
@@ -3030,7 +3030,7 @@ then
 fi
 echo "$ac_t""$SO" 1>&6
 # LDSHARED is the ld *command* used to create shared library
-# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
+# -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
 # (Shared libraries in this instance are shared modules to be loaded into
 # Python, as opposed to building Python itself as a shared library.)
 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
@@ -3052,7 +3052,7 @@ then
        SunOS/5*) 
                if test "$GCC" = "yes"
                then LDSHARED='$(CC) -shared'
-               else LDSHARED="ld -G";
+               else LDSHARED="$(CC) -G";
                fi ;;
        hp*|HP*) LDSHARED="ld -b";;
        OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
index 7ade904c99bc4dcb5bcea546845713b271d0a24a..d667cab4834a1197f2c517bd564b80ca8cf179ad 100644 (file)
@@ -650,7 +650,7 @@ then
 fi
 AC_MSG_RESULT($SO)
 # LDSHARED is the ld *command* used to create shared library
-# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
+# -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
 # (Shared libraries in this instance are shared modules to be loaded into
 # Python, as opposed to building Python itself as a shared library.)
 AC_MSG_CHECKING(LDSHARED)
@@ -671,7 +671,7 @@ then
        SunOS/5*) 
                if test "$GCC" = "yes"
                then LDSHARED='$(CC) -shared'
-               else LDSHARED="ld -G";
+               else LDSHARED="$(CC) -G";
                fi ;;
        hp*|HP*) LDSHARED="ld -b";;
        OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;