a5861b89df
- change tr to ${TR} lang/tcl84 only: - sync MASTER_SITES with other tcl ports - change sysctl to ${SYSCTL} Suggested by: stas Approved by: garga (mentor)
44 lines
1.3 KiB
Text
44 lines
1.3 KiB
Text
--- configure.orig Wed Apr 19 14:29:37 2006
|
|
+++ configure Mon May 1 17:59:53 2006
|
|
@@ -2881,25 +2881,26 @@
|
|
FreeBSD-*)
|
|
# FreeBSD 3.* and greater have ELF.
|
|
SHLIB_CFLAGS="-fPIC"
|
|
- SHLIB_LD="ld -Bshareable -x"
|
|
+ TCL_SHLIB_LD_EXTRAS="-soname \$@"
|
|
+ SHLIB_LD="${CC} -shared"
|
|
SHLIB_LD_LIBS='${LIBS}'
|
|
SHLIB_SUFFIX=".so"
|
|
DL_OBJS="tclLoadDl.o"
|
|
DL_LIBS=""
|
|
- LDFLAGS="$LDFLAGS -export-dynamic"
|
|
+ LDFLAGS=""
|
|
CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
|
LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}'
|
|
if test "${TCL_THREADS}" = "1" ; then
|
|
- # The -pthread needs to go in the CFLAGS, not LIBS
|
|
+ # The -pthread needs to go in the LDFLAGS, 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}\$\{DBGX\}.a'
|
|
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}${DBGX}.so.1'
|
|
TCL_LIB_VERSIONS_OK=nodots
|
|
;;
|
|
esac
|
|
@@ -3472,6 +3473,7 @@
|
|
#define _POSIX_PTHREAD_SEMANTICS 1
|
|
EOF
|
|
|
|
+TCL_SRC_DIR=${prefix}/include/tcl${TCLVERSION}
|
|
|
|
SHLIB_CFLAGS="-KPIC"
|
|
|