diff options
author | Guido van Rossum <guido@python.org> | 1998-03-05 15:41:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-03-05 15:41:09 (GMT) |
commit | 2b5ca0030512f58ce20967483d85c6b402086212 (patch) | |
tree | 736cf9f31b717c88f4c27009ba829cf8631314ef /configure.in | |
parent | e0394259b0255fdf53046de75a67cbc538625171 (diff) | |
download | cpython-2b5ca0030512f58ce20967483d85c6b402086212.zip cpython-2b5ca0030512f58ce20967483d85c6b402086212.tar.gz cpython-2b5ca0030512f58ce20967483d85c6b402086212.tar.bz2 |
Some changes because gcc on SGI doesn't support '-all'
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/configure.in b/configure.in index 358c924..e14c1ea 100644 --- a/configure.in +++ b/configure.in @@ -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) |