diff options
author | David Schultz <das@FreeBSD.org> | 2005-02-20 00:29:40 +0000 |
---|---|---|
committer | David Schultz <das@FreeBSD.org> | 2005-02-20 00:29:40 +0000 |
commit | 3e878728b6f2a233820430cb70171be17bc5bd6a (patch) | |
tree | a3e5c890394d4d0fc763362ce655bc8ef1d01ae2 /lang/tclX | |
parent | a96bd042fe41cc807c30e9212bc0945bcf69cb6b (diff) | |
download | ports-3e878728b6f2a233820430cb70171be17bc5bd6a.tar.gz ports-3e878728b6f2a233820430cb70171be17bc5bd6a.zip |
Remove more copies of Tcl's SunOS shared library hack.
It's worth pointing out that the Tcl project used to
*recommend* that application writers copy this kludge.
These ports work fine with Tcl 8.3, which provided a fake
matherr() even if the OS didn't, but here's what the
Tcl 8.4 changelog has to say:
2002-05-31 (dead code)[474335,555635] removed all use of matherr() (english)
*** POTENTIAL INCOMPATIBILITY ***
The following lines can be safely removed from any application that
has them, unless compatibility with SunOS 4.X is desired.
extern int matherr();
int *tclDummyMathPtr = (int *) matherr;
The build problems were pointed out by Kris, as usual. ;-)
Notes
Notes:
svn path=/head/; revision=129328
Diffstat (limited to 'lang/tclX')
-rw-r--r-- | lang/tclX/files/patch-ag | 18 | ||||
-rw-r--r-- | lang/tclX/files/patch-ah | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/lang/tclX/files/patch-ag b/lang/tclX/files/patch-ag new file mode 100644 index 000000000000..0ec2f3b27e5e --- /dev/null +++ b/lang/tclX/files/patch-ag @@ -0,0 +1,18 @@ +--- ../tcl/unix/tclXAppInit.c.orig Sat Feb 19 19:05:30 2005 ++++ ../tcl/unix/tclXAppInit.c Sat Feb 19 19:05:42 2005 +@@ -19,15 +19,6 @@ + + #include "tclExtend.h" + +-/* +- * The following variable is a special hack that insures the tcl +- * version of matherr() is used when linking against shared libraries. +- * Even if matherr is not used on this system, there is a dummy version +- * in libtcl. +- */ +-extern int matherr (); +-int (*tclDummyMathPtr)() = matherr; +- + + /*----------------------------------------------------------------------------- + * main -- diff --git a/lang/tclX/files/patch-ah b/lang/tclX/files/patch-ah new file mode 100644 index 000000000000..4fa51723eabf --- /dev/null +++ b/lang/tclX/files/patch-ah @@ -0,0 +1,18 @@ +--- ../tk/unix/tkXAppInit.c.orig Sat Feb 19 19:06:15 2005 ++++ ../tk/unix/tkXAppInit.c Sat Feb 19 19:06:22 2005 +@@ -21,15 +21,6 @@ + #include "tclExtend.h" + #include "tk.h" + +-/* +- * The following variable is a special hack that insures the tcl +- * version of matherr() is used when linking against shared libraries +- * Even if matherr is not used on this system, there is a dummy version +- * in libtcl. +- */ +-extern int matherr (); +-int (*tclDummyMathPtr)() = matherr; +- + + /*----------------------------------------------------------------------------- + * main -- |