Some changes because gcc on SGI doesn't support '-all'

This commit is contained in:
Guido van Rossum 1998-03-05 15:41:09 +00:00
parent e0394259b0
commit 2b5ca00305
2 changed files with 159 additions and 147 deletions

286
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -312,7 +312,10 @@ then
Linux*) CCSHARED="-fpic";;
FreeBSD*|NetBSD*) CCSHARED="-fpic";;
SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
IRIX*/6*) CCSHARED="-all";;
IRIX*/6*) case $CC in
*gcc*) CCSHARED="-shared";;
*) CCSHARED="-shared -all";;
esac;;
esac
fi
AC_MSG_RESULT($CCSHARED)
@ -328,14 +331,17 @@ then
Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
next/*) LINKFORSHARED="-u libsys_s";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
IRIX*/6*) LINKFORSHARED="-all";;
SunOS/5*) if test "$CC" = "gcc"
then
if gcc -Xlinker -V 2>/dev/null | grep BFD >/dev/null
IRIX*/6*) case $CC in
*gcc*) LINKFORSHARED="-shared -Xlinker -all";;
*) LINKFORSHARED="-shared -all";;
esac;;
SunOS/5*) case $CC in
*gcc*)
if $CC -Xlinker -V 2>/dev/null | grep BFD >/dev/null
then
LINKFORSHARED="-Xlinker --export-dynamic"
fi
fi;;
fi;;
esac;;
esac
fi
AC_MSG_RESULT($LINKFORSHARED)