summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-08-29 15:06:49 (GMT)
committerGuido van Rossum <guido@python.org>2000-08-29 15:06:49 (GMT)
commit0286ae8c46357f04edc567315b167d0ae9e5ddc6 (patch)
tree3638de2b61accf2434dfff282392334ff4dd4b06 /configure.in
parentb73172f227384ad6f825031ef50c83cca7dd9ef8 (diff)
downloadcpython-0286ae8c46357f04edc567315b167d0ae9e5ddc6.zip
cpython-0286ae8c46357f04edc567315b167d0ae9e5ddc6.tar.gz
cpython-0286ae8c46357f04edc567315b167d0ae9e5ddc6.tar.bz2
Some cleanup for FreeBSD. This gets rid of version numbers and
figures out old (a.out) and newer (ELF) systems, similar to NetBSD. (I'm assuming this is also by tg@FreeBSD.org.)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 11 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 801019c..73c8b7a30 100644
--- a/configure.in
+++ b/configure.in
@@ -575,8 +575,7 @@ then
Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";;
- FreeBSD*/[[34]]*) LDSHARED="gcc -shared";;
- FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
+ OpenBSD*) LDSHARED="ld -Bshareable";;
NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
@@ -584,6 +583,13 @@ then
else
LDSHARED="ld -Bshareable"
fi;;
+ FreeBSD*)
+ if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
+ then
+ LDSHARED="cc -shared ${LDFLAGS}"
+ else
+ LDSHARED="ld -Bshareable ${LDFLAGS}"
+ fi;;
SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
*) LDSHARED="ld";;
@@ -602,8 +608,8 @@ then
fi;;
Linux*) CCSHARED="-fpic";;
BSD/OS*/4*) CCSHARED="-fpic";;
- FreeBSD*|OpenBSD*) CCSHARED="-fpic";;
- NetBSD*) CCSHARED="-fPIC";;
+ OpenBSD*) CCSHARED="-fpic";;
+ FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
Monterey*) CCSHARED="-G";;
IRIX*/6*) case $CC in
@@ -623,7 +629,6 @@ then
hp*|HP*)
LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
- FreeBSD/[[34]]*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
# -u libsys_s pulls in all symbols in libsys
next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
@@ -633,7 +638,7 @@ then
# loading of any modules which reference it in System.framework
next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
- NetBSD*)
+ FreeBSD*|NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then
LINKFORSHARED="-Wl,--export-dynamic"