diff options
Diffstat (limited to 'x11-toolkits/tk86/files/patch-unix::configure')
-rw-r--r-- | x11-toolkits/tk86/files/patch-unix::configure | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/x11-toolkits/tk86/files/patch-unix::configure b/x11-toolkits/tk86/files/patch-unix::configure new file mode 100644 index 000000000000..b63f23a7dbe1 --- /dev/null +++ b/x11-toolkits/tk86/files/patch-unix::configure @@ -0,0 +1,44 @@ +--- configure.orig Mon Oct 23 15:45:33 2006 ++++ configure Tue Jan 30 11:19:37 2007 +@@ -3530,6 +3530,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 +@@ -5447,25 +5448,26 @@ + FreeBSD-*) + # FreeBSD 3.* and greater have ELF. + SHLIB_CFLAGS="-fPIC" +- SHLIB_LD="ld -Bshareable -x" ++ TCL_SHLIB_LD_EXTRAS="-soname \$@" ++ SHLIB_LD="ld -shared -x" + 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}.a' +- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so' ++ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}.so.1' + TCL_LIB_VERSIONS_OK=nodots + ;; + esac |