Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5b718fc

Browse files
committed
Use $(CC) -G to link shared libraries on Solaris.
1 parent ed5a7ca commit 5b718fc

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3030,7 +3030,7 @@ then
30303030
fi
30313031
echo "$ac_t""$SO" 1>&6
30323032
# LDSHARED is the ld *command* used to create shared library
3033-
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
3033+
# -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
30343034
# (Shared libraries in this instance are shared modules to be loaded into
30353035
# Python, as opposed to building Python itself as a shared library.)
30363036
echo $ac_n "checking LDSHARED""... $ac_c" 1>&6
@@ -3052,7 +3052,7 @@ then
30523052
SunOS/5*)
30533053
if test "$GCC" = "yes"
30543054
then LDSHARED='$(CC) -shared'
3055-
else LDSHARED="ld -G";
3055+
else LDSHARED="$(CC) -G";
30563056
fi ;;
30573057
hp*|HP*) LDSHARED="ld -b";;
30583058
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;

configure.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ then
650650
fi
651651
AC_MSG_RESULT($SO)
652652
# LDSHARED is the ld *command* used to create shared library
653-
# -- "ld" on SunOS 4.x.x, "ld -G" on SunOS 5.x, "ld -shared" on IRIX 5
653+
# -- "ld" on SunOS 4.x.x, "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5
654654
# (Shared libraries in this instance are shared modules to be loaded into
655655
# Python, as opposed to building Python itself as a shared library.)
656656
AC_MSG_CHECKING(LDSHARED)
@@ -671,7 +671,7 @@ then
671671
SunOS/5*)
672672
if test "$GCC" = "yes"
673673
then LDSHARED='$(CC) -shared'
674-
else LDSHARED="ld -G";
674+
else LDSHARED="$(CC) -G";
675675
fi ;;
676676
hp*|HP*) LDSHARED="ld -b";;
677677
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;

0 commit comments

Comments
 (0)