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:
parent
99d707af47
commit
57c9a663cb
|
@ -493,7 +493,11 @@ then
|
||||||
IRIX/5*) LDSHARED="ld -shared";;
|
IRIX/5*) LDSHARED="ld -shared";;
|
||||||
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
|
IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";;
|
||||||
SunOS/4*) LDSHARED="ld";;
|
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";;
|
hp*|HP*) LDSHARED="ld -b";;
|
||||||
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";;
|
||||||
DYNIX/ptx*) LDSHARED="ld -G";;
|
DYNIX/ptx*) LDSHARED="ld -G";;
|
||||||
|
|
Loading…
Reference in New Issue