When building on Solaris and the compiler is GCC, use '$(CC) -G' to

create shared extensions rather than 'ld -G'.  This ensures that shared
extensions link against libgcc.a, in case there are any functions in the
GCC runtime not already in the Python core.
This commit is contained in:
Greg Ward 2000-05-26 12:22:54 +00:00
parent 99d707af47
commit 57c9a663cb
2 changed files with 199 additions and 191 deletions

384
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -493,7 +493,11 @@ then
IRIX/5*) LDSHARED="ld -shared";;
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
SunOS/4*) LDSHARED="ld";;
SunOS/5*) LDSHARED="ld -G";;
SunOS/5*)
if test "$GCC" = "yes"
then LDSHARED='$(CC) -G'
else LDSHARED="ld -G";
fi ;;
hp*|HP*) LDSHARED="ld -b";;
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
DYNIX/ptx*) LDSHARED="ld -G";;