2004-01-21 20:30:33 +01:00
|
|
|
$NetBSD: patch-af,v 1.7 2004/01/21 19:30:33 jwise Exp $
|
2001-05-24 04:58:15 +02:00
|
|
|
|
2004-01-21 20:30:33 +01:00
|
|
|
--- tcl.m4.orig 2001-10-19 20:24:15.000000000 -0400
|
|
|
|
+++ tcl.m4 2004-01-21 13:57:23.000000000 -0500
|
Update to version 8.3.4
Besides more bug fixes and several enhancements some of the
NetBSD relevant changes (taken from "changes" in the
distribution):
2001-04-03 (doc fixes) numerous doc corrections and clarifications.
Update of READMEs.
2001-03-29 (bug fix) prevent potential race condition and security leak in
tmp filename creation on Unix. (max)
2001-03-13 (bug fix) Correctly possible memory corruption in string map {}
$str (fellows)
2001-01-30 (bug fix) Fixed possible hangs in fcopy. (porter)
2000-11-23 (mem leak) fixed potential memory leak in error case of lsort
(fellows)
2000-11-01 (mem leak) Corrected excessive mem use of info exists on a
non-existent array element (hobbs)
2000-09-27 (bug fix) fixed a bug introduced by a partial fix in 8.3.2 that
didn't set nonBlocking correctly when resetting the flags for the write
side (mem leak) Correct mem leak in channels when statePtr was released
(hobbs)
2001-07-18 (bug fix) corrected memory overwrite error when buffer size
of a channel is changed after channel use has already begun (kupries, porter)
2001-08-07 (bug fix) corrected bytecode stack management during [break]
(see test foreach-5.5) (sofer, tallneil, jstrot)
2001-08-08 (new features) updated packages msgcat 1.1.1, opt 0.4.3,
tcltest 1.0.1, dependencies checked (porter)
2001-08-24 (bug fix) [auto_import] now matches patterns like
[namespace import], not like [string match] (porter)
**** POTENTIAL INCOMPATABILITY ****
2001-08-27 (new feature) added Tcl_SetMainLoop() to enable loading Tk as a
true package (hobbs)
2001-09-06 (new feature) http 2.4: honor the Content-encoding and charset
parameters; add -binary switch for forcing the issue (hobbs, saoukhi, orwell)
2001-09-10 (bug fix) protect against alias loops (hobbs)
2001-09-19 (bug fix) [format] and [scan] corrected for 64-bit machines (rmax)
2001-09-26 (bug fix) corrected potential deadlock in channels that do not
provide a BlockModeProc (kupries, kogorman)
2001-10-11 (bug fix) corrected cleanup of self-referential bytecodes at
interpreter deletion (sofer, rbrunner)
2001-12-23 18:02:30 +01:00
|
|
|
@@ -601,6 +601,7 @@
|
|
|
|
# Step 3: set configuration options based on system name and version.
|
2001-05-24 04:58:15 +02:00
|
|
|
|
|
|
|
do64bit_ok=no
|
|
|
|
+ TCL_LIB_SPEC_RPATH=""
|
|
|
|
EXTRA_CFLAGS=""
|
|
|
|
TCL_EXPORT_FILE_SUFFIX=""
|
|
|
|
UNSHARED_LIB_SUFFIX=""
|
2004-01-21 20:30:33 +01:00
|
|
|
@@ -790,6 +791,9 @@
|
|
|
|
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
|
|
|
EXTRA_CFLAGS=""
|
|
|
|
LDFLAGS=""
|
|
|
|
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
|
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
|
|
+ TCL_LIB_VERSIONS_OK=nodots
|
|
|
|
;;
|
|
|
|
IRIX-6.*|IRIX64-6.5*)
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
@@ -814,6 +818,9 @@
|
|
|
|
esac
|
|
|
|
LDFLAGS="-n32"
|
|
|
|
fi
|
|
|
|
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
|
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
|
|
+ TCL_LIB_VERSIONS_OK=nodots
|
|
|
|
;;
|
|
|
|
IRIX64-6.*)
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
@@ -824,6 +831,9 @@
|
|
|
|
DL_LIBS=""
|
|
|
|
LDFLAGS=""
|
|
|
|
LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
|
|
|
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
|
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
|
|
+ TCL_LIB_VERSIONS_OK=nodots
|
|
|
|
;;
|
|
|
|
Linux*)
|
|
|
|
SHLIB_CFLAGS="-fPIC"
|
|
|
|
@@ -910,28 +920,36 @@
|
2001-07-25 21:42:58 +02:00
|
|
|
LD_SEARCH_FLAGS=""
|
|
|
|
;;
|
|
|
|
NetBSD-*|FreeBSD-[[1-2]].*|OpenBSD-*)
|
|
|
|
+ if test "X${COMPILER_OPTIMIZATION_BUG}" = "XYES"; then
|
|
|
|
+ CFLAGS_OPTIMIZE=-O0
|
|
|
|
+ fi
|
|
|
|
# Not available on all versions: check for include file.
|
2001-05-24 04:58:15 +02:00
|
|
|
AC_CHECK_HEADER(dlfcn.h, [
|
|
|
|
# NetBSD/SPARC needs -fPIC, -fpic will not do.
|
|
|
|
SHLIB_CFLAGS="-fPIC"
|
|
|
|
- SHLIB_LD="ld -Bshareable -x"
|
|
|
|
SHLIB_LD_LIBS=""
|
|
|
|
SHLIB_SUFFIX=".so"
|
|
|
|
DL_OBJS="tclLoadDl.o"
|
|
|
|
DL_LIBS=""
|
|
|
|
LDFLAGS=""
|
|
|
|
- LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
|
|
|
|
AC_MSG_CHECKING(for ELF)
|
|
|
|
AC_EGREP_CPP(yes, [
|
|
|
|
#ifdef __ELF__
|
|
|
|
yes
|
|
|
|
#endif
|
|
|
|
- ],
|
|
|
|
+ ], [
|
|
|
|
AC_MSG_RESULT(yes)
|
|
|
|
- SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so',
|
|
|
|
+ SHLIB_LD='${TCL_CC} -shared -Wl,-x'
|
2001-10-23 11:55:00 +02:00
|
|
|
+ LD_SEARCH_FLAGS='-Wl,-R${LIB_RUNTIME_DIR}'
|
|
|
|
+ TCL_LIB_SPEC_RPATH="-Wl,-R${exec_prefix}/lib"
|
2001-05-24 04:58:15 +02:00
|
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
|
|
+ ], [
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
+ SHLIB_LD="ld -Bshareable -x"
|
|
|
|
+ LD_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}'
|
2001-06-13 22:48:01 +02:00
|
|
|
+ TCL_LIB_SPEC_RPATH="-R${exec_prefix}/lib"
|
2001-05-24 04:58:15 +02:00
|
|
|
SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0'
|
|
|
|
- )
|
|
|
|
+ ])
|
|
|
|
], [
|
|
|
|
SHLIB_CFLAGS=""
|
|
|
|
SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
|
2004-01-21 20:30:33 +01:00
|
|
|
@@ -1129,6 +1147,9 @@
|
2001-07-29 09:09:51 +02:00
|
|
|
DL_LIBS="-ldl"
|
|
|
|
LDFLAGS=""
|
|
|
|
LD_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}'
|
|
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
|
|
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
|
|
|
+ TCL_LIB_VERSIONS_OK=nodots
|
|
|
|
;;
|
|
|
|
SunOS-5*)
|
Update to version 8.3.4
Besides more bug fixes and several enhancements some of the
NetBSD relevant changes (taken from "changes" in the
distribution):
2001-04-03 (doc fixes) numerous doc corrections and clarifications.
Update of READMEs.
2001-03-29 (bug fix) prevent potential race condition and security leak in
tmp filename creation on Unix. (max)
2001-03-13 (bug fix) Correctly possible memory corruption in string map {}
$str (fellows)
2001-01-30 (bug fix) Fixed possible hangs in fcopy. (porter)
2000-11-23 (mem leak) fixed potential memory leak in error case of lsort
(fellows)
2000-11-01 (mem leak) Corrected excessive mem use of info exists on a
non-existent array element (hobbs)
2000-09-27 (bug fix) fixed a bug introduced by a partial fix in 8.3.2 that
didn't set nonBlocking correctly when resetting the flags for the write
side (mem leak) Correct mem leak in channels when statePtr was released
(hobbs)
2001-07-18 (bug fix) corrected memory overwrite error when buffer size
of a channel is changed after channel use has already begun (kupries, porter)
2001-08-07 (bug fix) corrected bytecode stack management during [break]
(see test foreach-5.5) (sofer, tallneil, jstrot)
2001-08-08 (new features) updated packages msgcat 1.1.1, opt 0.4.3,
tcltest 1.0.1, dependencies checked (porter)
2001-08-24 (bug fix) [auto_import] now matches patterns like
[namespace import], not like [string match] (porter)
**** POTENTIAL INCOMPATABILITY ****
2001-08-27 (new feature) added Tcl_SetMainLoop() to enable loading Tk as a
true package (hobbs)
2001-09-06 (new feature) http 2.4: honor the Content-encoding and charset
parameters; add -binary switch for forcing the issue (hobbs, saoukhi, orwell)
2001-09-10 (bug fix) protect against alias loops (hobbs)
2001-09-19 (bug fix) [format] and [scan] corrected for 64-bit machines (rmax)
2001-09-26 (bug fix) corrected potential deadlock in channels that do not
provide a BlockModeProc (kupries, kogorman)
2001-10-11 (bug fix) corrected cleanup of self-referential bytecodes at
interpreter deletion (sofer, rbrunner)
2001-12-23 18:02:30 +01:00
|
|
|
|
2004-01-21 20:30:33 +01:00
|
|
|
@@ -1173,6 +1194,9 @@
|
2001-07-29 09:09:51 +02:00
|
|
|
else
|
|
|
|
LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
|
|
|
|
fi
|
|
|
|
+ SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so'
|
|
|
|
+ UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
|
|
|
|
+ TCL_LIB_VERSIONS_OK=nodots
|
|
|
|
;;
|
|
|
|
ULTRIX-4.*)
|
|
|
|
SHLIB_CFLAGS="-G 0"
|