From 5b718fc8a3ef93ced473b0285145fd0faecaab7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Mon, 10 Sep 2001 15:34:42 +0000 Subject: Use $(CC) -G to link shared libraries on Solaris. --- configure | 4 ++-- configure.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index 6ab0a85..7f1c22f 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 7ade904..d667cab 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 \"*\"";; -- cgit v0.12