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.)
This commit is contained in:
Guido van Rossum 2000-08-29 15:06:49 +00:00
parent b73172f227
commit 0286ae8c46
2 changed files with 224 additions and 214 deletions

421
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -575,8 +575,7 @@ then
Linux*) LDSHARED="gcc -shared";; Linux*) LDSHARED="gcc -shared";;
dgux*) LDSHARED="ld -G";; dgux*) LDSHARED="ld -G";;
BSD/OS*/4*) LDSHARED="gcc -shared";; BSD/OS*/4*) LDSHARED="gcc -shared";;
FreeBSD*/[[34]]*) LDSHARED="gcc -shared";; OpenBSD*) LDSHARED="ld -Bshareable";;
FreeBSD*|OpenBSD*) LDSHARED="ld -Bshareable";;
NetBSD*) NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then then
@ -584,6 +583,13 @@ then
else else
LDSHARED="ld -Bshareable" LDSHARED="ld -Bshareable"
fi;; 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";; SCO_SV*) LDSHARED="cc -G -KPIC -Ki486 -belf -Wl,-Bexport";;
Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";; Monterey*) LDSHARED="cc -G -dy -Bdynamic -Bexport -L/usr/lib/ia64l64";;
*) LDSHARED="ld";; *) LDSHARED="ld";;
@ -602,8 +608,8 @@ then
fi;; fi;;
Linux*) CCSHARED="-fpic";; Linux*) CCSHARED="-fpic";;
BSD/OS*/4*) CCSHARED="-fpic";; BSD/OS*/4*) CCSHARED="-fpic";;
FreeBSD*|OpenBSD*) CCSHARED="-fpic";; OpenBSD*) CCSHARED="-fpic";;
NetBSD*) CCSHARED="-fPIC";; FreeBSD*|NetBSD*) CCSHARED="-fPIC";;
SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";; SCO_SV*) CCSHARED="-KPIC -dy -Bdynamic";;
Monterey*) CCSHARED="-G";; Monterey*) CCSHARED="-G";;
IRIX*/6*) case $CC in IRIX*/6*) case $CC in
@ -623,7 +629,6 @@ then
hp*|HP*) hp*|HP*)
LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";;
FreeBSD/[[34]]*) LINKFORSHARED="-Xlinker -export-dynamic";;
Linux*) LINKFORSHARED="-Xlinker -export-dynamic";; Linux*) LINKFORSHARED="-Xlinker -export-dynamic";;
# -u libsys_s pulls in all symbols in libsys # -u libsys_s pulls in all symbols in libsys
next/2*|next/3*) LINKFORSHARED="-u libsys_s";; next/2*|next/3*) LINKFORSHARED="-u libsys_s";;
@ -633,7 +638,7 @@ then
# loading of any modules which reference it in System.framework # loading of any modules which reference it in System.framework
next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;; next/4*|next/5*) LINKFORSHARED="-u __dummy -framework System" ;;
SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";; SCO_SV*) LINKFORSHARED="-Bdynamic -dy -Wl,-Bexport";;
NetBSD*) FreeBSD*|NetBSD*)
if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]] if [[ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]]
then then
LINKFORSHARED="-Wl,--export-dynamic" LINKFORSHARED="-Wl,--export-dynamic"