summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-01-03 21:21:30 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-01-03 21:21:30 (GMT)
commitef33a3a3c653d35af2d4669cb9c587d7aee9e2ae (patch)
treec04dab718741138eb63702919a221ae45041b4ae /unix/configure
parent71c15d876f2f5a31a2f6d761e31192dd365db45e (diff)
downloadtcl-ef33a3a3c653d35af2d4669cb9c587d7aee9e2ae.zip
tcl-ef33a3a3c653d35af2d4669cb9c587d7aee9e2ae.tar.gz
tcl-ef33a3a3c653d35af2d4669cb9c587d7aee9e2ae.tar.bz2
regen
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure32
1 files changed, 31 insertions, 1 deletions
diff --git a/unix/configure b/unix/configure
index fee4353..9d8a5dd 100755
--- a/unix/configure
+++ b/unix/configure
@@ -8072,7 +8072,7 @@ fi
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
TCL_LIB_VERSIONS_OK=nodots
;;
- NetBSD-*|FreeBSD-*)
+ NetBSD-*|FreeBSD-[3-4].*)
# FreeBSD 3.* and greater have ELF.
# NetBSD 2.* has ELF and can use 'cc -shared' to build shared libs
SHLIB_CFLAGS="-fPIC"
@@ -8106,6 +8106,36 @@ fi
;;
esac
;;
+ FreeBSD-*)
+ # This configuration from FreeBSD Ports.
+ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD="${CC} -shared"
+ TCL_SHLIB_LD_EXTRAS="-soname \"
+ SHLIB_LD_LIBS='${LIBS}'
+ SHLIB_SUFFIX=".so"
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS=""
+ LDFLAGS=""
+ if test $doRpath = yes; then
+
+ CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
+ LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
+fi
+
+ if test "${TCL_THREADS}" = "1"; then
+
+ # The -pthread needs to go in the LDFLAGS, not LIBS
+ LIBS=`echo $LIBS | sed s/-pthread//`
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
+fi
+
+ # Version numbers are dot-stripped by system policy.
+ TCL_TRIM_DOTS=`echo ${VERSION} | tr -d .`
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1'
+ TCL_LIB_VERSIONS_OK=nodots
+ ;;
Darwin-*)
CFLAGS_OPTIMIZE="-Os"
SHLIB_CFLAGS="-fno-common"