summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-03-21 15:57:54 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-03-21 15:57:54 (GMT)
commitbec1958d972b551ba72f79b7cd6e75946f3c478d (patch)
tree243c1cd07a152cb17a023b03f6f8655827d61b17 /configure.in
parentf74c9dc870d4ee59142f8d548ffcf22f3710f0fe (diff)
downloadcpython-bec1958d972b551ba72f79b7cd6e75946f3c478d.zip
cpython-bec1958d972b551ba72f79b7cd6e75946f3c478d.tar.gz
cpython-bec1958d972b551ba72f79b7cd6e75946f3c478d.tar.bz2
Use proper compiler flags on UnixWare.
Closes bug #231439.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 1898348..5c12aa4 100644
--- a/configure.in
+++ b/configure.in
@@ -581,6 +581,11 @@ then
else
LDSHARED="ld -Bshareable ${LDFLAGS}"
fi;;
+ UnixWare*)
+ if test "$GCC" = "yes"
+ then LDSHARED="$(CC) -shared"
+ else LDSHARED="$(CC) -G"
+ fi;;
SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
CYGWIN*) LDSHARED="gcc -shared -Wl,--enable-auto-image-base";;
@@ -606,6 +611,11 @@ then
BSD/OS*/4*) CCSHARED="-fpic";;
OpenBSD*) CCSHARED="-fpic";;
FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
+ UnixWare*)
+ if test "$GCC" = "yes"
+ then CCSHARED="-fPIC"
+ else CCSHARED="-KPIC"
+ fi;;
SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
Monterey*) CCSHARED="-G";;
IRIX*/6*) case $CC in
@@ -635,6 +645,7 @@ then
# loading of any modules which reference it in System.framework
next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
Darwin/*) LINKFORSHARED="-u __dummy -framework System -framework Foundation" ;;
+ UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
FreeBSD*|NetBSD*)