freebsd-ports/x11-toolkits/tk86/files/patch-unix::configure
Martin Matuska 393b78141e - Update to 8.5.0
- Make demos installation optional (WITH_DEMOS)
2007-12-29 21:39:48 +00:00

40 lines
1.2 KiB
Text

--- configure.orig 2007-12-17 18:57:25.000000000 +0100
+++ configure 2007-12-29 14:17:55.000000000 +0100
@@ -3536,6 +3536,7 @@
# Threads support - this auto-enables if Tcl was compiled threaded
#------------------------------------------------------------------------
+TCL_SRC_DIR=${prefix}/include/tcl${TCLVERSION}
# Check whether --enable-threads or --disable-threads was given.
if test "${enable_threads+set}" = set; then
@@ -5828,7 +5829,7 @@
SHLIB_SUFFIX=".so"
DL_OBJS="tclLoadDl.o"
DL_LIBS=""
- LDFLAGS="$LDFLAGS -export-dynamic"
+ LDFLAGS=""
if test $doRpath = yes; then
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
@@ -5839,16 +5840,16 @@
# The -pthread needs to go in the CFLAGS, not LIBS
LIBS=`echo $LIBS | sed s/-pthread//`
- CFLAGS="$CFLAGS -pthread"
- LDFLAGS="$LDFLAGS -pthread"
+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
+ LDFLAGS="$LDFLAGS $PTHREAD_LIBS"
fi
case $system in
- FreeBSD-3.*)
+ FreeBSD-*)
# FreeBSD-3 doesn't handle version numbers with dots.
UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.a'
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so'
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1'
TCL_LIB_VERSIONS_OK=nodots
;;
esac