summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-09-05 14:24:43 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-09-05 14:24:43 (GMT)
commit36546db7507273f9a1dffc6d8497c738b93f5fa2 (patch)
treee2c4fdadd9d30adcf4f9d597e73b2c73f08f609f /configure.in
parent44f8696171f8d9e29c82e250ed90351dfb207da2 (diff)
downloadcpython-36546db7507273f9a1dffc6d8497c738b93f5fa2.zip
cpython-36546db7507273f9a1dffc6d8497c738b93f5fa2.tar.gz
cpython-36546db7507273f9a1dffc6d8497c738b93f5fa2.tar.bz2
Patch #455231: Support ELF properly on OpenBSD.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in15
1 files changed, 3 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index 329a1af..da9a1a0 100644
--- a/configure.in
+++ b/configure.in
@@ -673,15 +673,7 @@ then
Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";;
- OpenBSD*) LDSHARED="ld -Bshareable";;
- NetBSD*)
- if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
- then
- LDSHARED="cc -shared"
- else
- LDSHARED="ld -Bshareable"
- fi;;
- FreeBSD*)
+ OpenBSD*|NetBSD*|FreeBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LDSHARED="cc -shared ${LDFLAGS}"
@@ -716,8 +708,7 @@ then
fi;;
Linux*) CCSHARED="-fPIC";;
BSD/OS*/4*) CCSHARED="-fpic";;
- OpenBSD*) CCSHARED="-fpic";;
- FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
+ FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";;
UnixWare*)
if test "$GCC" = "yes"
then CCSHARED="-fPIC"
@@ -762,7 +753,7 @@ then
UnixWare*) LINKFORSHARED="-Wl,-Bexport";;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";;
- FreeBSD*|NetBSD*)
+ FreeBSD*|NetBSD*|OpenBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LINKFORSHARED="-Wl,--export-dynamic"