Commit c486c2a9 authored by Greg Ward's avatar Greg Ward

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.
parent 13baf4b1
This diff is collapsed.
......@@ -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";;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment