From: Martin v. Löwis Date: Mon, 10 Sep 2001 15:34:42 +0000 (+0000) Subject: Use $(CC) -G to link shared libraries on Solaris. X-Git-Tag: v2.2.1c1~1884 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b718fc8a3ef93ced473b0285145fd0faecaab7e;p=python Use $(CC) -G to link shared libraries on Solaris. --- diff --git a/configure b/configure index 6ab0a85134..7f1c22f454 100755 --- 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 \"*\"";; diff --git a/configure.in b/configure.in index 7ade904c99..d667cab483 100644 --- a/configure.in +++ b/configure.in @@ -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 \"*\"";;