diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2001-11-10 21:05:02 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2001-11-10 21:05:02 +0000 |
commit | daf7bac68b2aab4a5ed69d9c16406bf749cbc918 (patch) | |
tree | 8a77c662902f4174be604ddfe3e6872d82222ad0 /x11-toolkits/tk83 | |
parent | 21a2539b2c34537dc6a844ad30dfb08bc616c921 (diff) | |
download | ports-daf7bac68b2aab4a5ed69d9c16406bf749cbc918.tar.gz ports-daf7bac68b2aab4a5ed69d9c16406bf749cbc918.zip |
Improved shared linking,
so tk can be loaded on demand in tclsh.
$ tclsh8.3
% load libtk83.so
reported by: Wojciech Sobczuk
Notes
Notes:
svn path=/head/; revision=49920
Diffstat (limited to 'x11-toolkits/tk83')
-rw-r--r-- | x11-toolkits/tk83/Makefile | 1 | ||||
-rw-r--r-- | x11-toolkits/tk83/files/patch-aa | 45 |
2 files changed, 24 insertions, 22 deletions
diff --git a/x11-toolkits/tk83/Makefile b/x11-toolkits/tk83/Makefile index 28431948930b..a4d6deaead74 100644 --- a/x11-toolkits/tk83/Makefile +++ b/x11-toolkits/tk83/Makefile @@ -7,6 +7,7 @@ PORTNAME= tk PORTVERSION= 8.3.4 +PORTREVISION= 1 CATEGORIES= x11-toolkits tk83 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= tcl diff --git a/x11-toolkits/tk83/files/patch-aa b/x11-toolkits/tk83/files/patch-aa index 32eba24b0a34..ee05cb4304c3 100644 --- a/x11-toolkits/tk83/files/patch-aa +++ b/x11-toolkits/tk83/files/patch-aa @@ -1,15 +1,6 @@ ---- configure.orig Sun Feb 20 06:30:02 2000 -+++ configure Mon May 1 11:21:14 2000 -@@ -1763,7 +1763,7 @@ - LDFLAGS="-Wl,-Bexport" - LD_SEARCH_FLAGS="" - ;; -- NetBSD-*|FreeBSD-[1-2].*|OpenBSD-*) -+ NetBSD-*|FreeBSD-*|OpenBSD-*) - # Not available on all versions: check for include file. - ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` - echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 -@@ -1847,6 +1847,7 @@ +--- configure.orig Sat Oct 20 02:24:40 2001 ++++ configure Sat Nov 10 21:53:28 2001 +@@ -2351,21 +2351,22 @@ # FreeBSD doesn't handle version numbers with dots. UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' @@ -17,7 +8,26 @@ TCL_LIB_VERSIONS_OK=nodots ;; FreeBSD-*) -@@ -2303,6 +2304,7 @@ + # FreeBSD 3.* and greater have ELF. + SHLIB_CFLAGS="-fPIC" +- SHLIB_LD="ld -Bshareable -x" +- SHLIB_LD_LIBS="" ++ SHLIB_LD="ld -shared -x -soname \$@" ++ SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" + DL_OBJS="tclLoadDl.o" + DL_LIBS="" +- LDFLAGS="-export-dynamic" ++ LDFLAGS="" + LD_SEARCH_FLAGS="" + # FreeBSD 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 + ;; + Rhapsody-*|Darwin-*) +@@ -2882,6 +2883,7 @@ echo "$ac_t""no" 1>&6 fi @@ -25,12 +35,3 @@ LIB_RUNTIME_DIR='${LIB_RUNTIME_DIR}' -@@ -4005,7 +4007,7 @@ - eval eval "TK_UNSHARED_LIB_SUFFIX=${UNSHARED_LIB_SUFFIX}" - - TCL_LIB_SPEC='-L$(TCL_BIN_DIR) $(TCL_LIB_FLAG)' --TCL_STUB_LIB_SPEC='-L$(TCL_BIN_DIR) $(TCL_STUB_LIB_FLAG)' -+TCL_STUB_LIB_SPEC='$(LOCALBASE)/lib/libtclstub83.a' - - if test "${SHARED_BUILD}" = "1" -a "${SHLIB_SUFFIX}" != ""; then - TK_SHLIB_CFLAGS="${SHLIB_CFLAGS}" |