Use $(CC) -G to link shared libraries on Solaris.

This commit is contained in:
Martin v. Löwis 2001-09-10 15:34:42 +00:00
parent ed5a7ca5ee
commit 5b718fc8a3
2 changed files with 4 additions and 4 deletions

4
configure vendored
View File

@ -3030,7 +3030,7 @@ then
fi fi
echo "$ac_t""$SO" 1>&6 echo "$ac_t""$SO" 1>&6
# LDSHARED is the ld *command* used to create shared library # 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 # (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.) # Python, as opposed to building Python itself as a shared library.)
echo $ac_n "checking LDSHARED""... $ac_c" 1>&6 echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
@ -3052,7 +3052,7 @@ then
SunOS/5*) SunOS/5*)
if test "$GCC" = "yes" if test "$GCC" = "yes"
then LDSHARED='$(CC) -shared' then LDSHARED='$(CC) -shared'
else LDSHARED="ld -G"; else LDSHARED="$(CC) -G";
fi ;; fi ;;
hp*|HP*) LDSHARED="ld -b";; hp*|HP*) LDSHARED="ld -b";;
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;

View File

@ -650,7 +650,7 @@ then
fi fi
AC_MSG_RESULT($SO) AC_MSG_RESULT($SO)
# LDSHARED is the ld *command* used to create shared library # 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 # (Shared libraries in this instance are shared modules to be loaded into
# Python, as opposed to building Python itself as a shared library.) # Python, as opposed to building Python itself as a shared library.)
AC_MSG_CHECKING(LDSHARED) AC_MSG_CHECKING(LDSHARED)
@ -671,7 +671,7 @@ then
SunOS/5*) SunOS/5*)
if test "$GCC" = "yes" if test "$GCC" = "yes"
then LDSHARED='$(CC) -shared' then LDSHARED='$(CC) -shared'
else LDSHARED="ld -G"; else LDSHARED="$(CC) -G";
fi ;; fi ;;
hp*|HP*) LDSHARED="ld -b";; hp*|HP*) LDSHARED="ld -b";;
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;