summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
Diffstat (limited to 'lang')
-rw-r--r--lang/tcl80/patches/patch-ab41
1 files changed, 39 insertions, 2 deletions
diff --git a/lang/tcl80/patches/patch-ab b/lang/tcl80/patches/patch-ab
index 4f9328d084b..c27b2f96d04 100644
--- a/lang/tcl80/patches/patch-ab
+++ b/lang/tcl80/patches/patch-ab
@@ -1,4 +1,13 @@
-$NetBSD: patch-ab,v 1.5 1998/09/17 12:02:54 agc Exp $
+$NetBSD: patch-ab,v 1.6 1999/04/01 09:59:04 agc Exp $
+
+Use -fPIC on NetBSD
+On Solaris, fix up the tcl library name, so it's the same as NetBSD
+for pkgsrc internal use (PLIST entries)
+On Solaris, do not use dots in version names for the library (same
+reason as previous)
+Use -fPIC on Solaris too, otherwise we overflow a 2048 entry table.
+Set LDFLAGS to the correct value
+Set TCL_SHARED_BUILD to 1.
--- configure.orig Tue Nov 25 16:31:42 1997
+++ configure Thu Sep 17 11:36:29 1998
@@ -11,7 +20,35 @@ $NetBSD: patch-ab,v 1.5 1998/09/17 12:02:54 agc Exp $
SHLIB_LD="ld -Bshareable -x"
SHLIB_LD_LIBS=""
SHLIB_SUFFIX=".so"
-@@ -4518,7 +4518,7 @@
+@@ -3909,7 +3909,7 @@
+ TCL_LIB_VERSIONS_OK=nodots
+ ;;
+ SunOS-5*)
+- SHLIB_CFLAGS="-KPIC"
++ SHLIB_CFLAGS="-fPIC"
+ SHLIB_LD="/usr/ccs/bin/ld -G -z text"
+
+ # Note: need the LIBS below, otherwise Tk won't find Tcl's
+@@ -3921,6 +3921,9 @@
+ DL_LIBS="-ldl"
+ LD_FLAGS=""
+ LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
++ TCL_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
++ TCL_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
++ TCL_LIB_VERSIONS_OK=nodots
+ ;;
+ ULTRIX-4.*)
+ SHLIB_CFLAGS="-G 0"
+@@ -4345,6 +4348,8 @@
+ MAKE_LIB="ar cr ${TCL_LIB_FILE} \${OBJS}"
+ fi
+
++TCL_SHARED_BUILD=1
++
+ # Note: in the following variable, it's important to use the absolute
+ # path name of the Tcl directory rather than "..": this is because
+ # AIX remembers this path and will attempt to use it at run-time to look
+@@ -4518,7 +4523,7 @@
s%@BUILD_DLTEST@%$BUILD_DLTEST%g
s%@DL_LIBS@%$DL_LIBS%g
s%@DL_OBJS@%$DL_OBJS%g