summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorHye-Shik Chang <hyeshik@gmail.com>2004-10-26 09:53:46 (GMT)
committerHye-Shik Chang <hyeshik@gmail.com>2004-10-26 09:53:46 (GMT)
commit337614993e6f329143e5a68349b62f0a43114ac9 (patch)
tree5a2e1a95f3615bf9b80813a455f479962ae524c2 /configure
parent182ac8514726402451a90fd59c9bf427f8071365 (diff)
downloadcpython-337614993e6f329143e5a68349b62f0a43114ac9.zip
cpython-337614993e6f329143e5a68349b62f0a43114ac9.tar.gz
cpython-337614993e6f329143e5a68349b62f0a43114ac9.tar.bz2
Patch #1044395: Allow configure option --enable-shared in FreeBSD.
(Submitted by James William Pye, Patch revised by Jiwon Seo)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 8 insertions, 3 deletions
diff --git a/configure b/configure
index 7b69003..36679b5 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.471 .
+# From configure.in Revision: 1.472 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.59 for python 2.4.
#
@@ -3392,10 +3392,15 @@ _ACEOF
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
- Linux*|GNU*|NetBSD*)
+ Linux*|GNU*|NetBSD*|FreeBSD*)
LDLIBRARY='libpython$(VERSION).so'
BLDLIBRARY='-L. -lpython$(VERSION)'
RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
+ case $ac_sys_system in
+ FreeBSD*)
+ SOVERSION=`echo $SOVERSION|cut -d "." -f 1`
+ ;;
+ esac
INSTSONAME="$LDLIBRARY".$SOVERSION
;;
hp*|HP*)
@@ -10332,7 +10337,7 @@ then
OpenBSD*|FreeBSD*)
if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
then
- LDSHARED="cc -shared ${LDFLAGS}"
+ LDSHARED="$CC -shared ${LDFLAGS}"
else
LDSHARED="ld -Bshareable ${LDFLAGS}"
fi;;