diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-04 16:38:22 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-03-04 16:38:22 (GMT) |
commit | 47dec8659f9c449f942ca6424373d1d0fe6d80ee (patch) | |
tree | 9e274cdbd334b76e1188eea62fee37cf6ce2c1e6 | |
parent | 4afe209dcaf4aed60329f4f216ffd383d0aa1c61 (diff) | |
parent | b5830ef3aed89fc5af7d49820dcbeca3c5ebc65e (diff) | |
download | tcl-47dec8659f9c449f942ca6424373d1d0fe6d80ee.zip tcl-47dec8659f9c449f942ca6424373d1d0fe6d80ee.tar.gz tcl-47dec8659f9c449f942ca6424373d1d0fe6d80ee.tar.bz2 |
Patch from the cygwin folks
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | generic/tclLoad.c | 6 | ||||
-rwxr-xr-x | unix/configure | 3 | ||||
-rw-r--r-- | unix/tcl.m4 | 3 |
4 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2012-03-04 Jan Nijtmans <nijtmans@users.sf.net> + + * generic/tclLoad.c: Patch from the cygwin folks + * unix/tcl.m4: + * unix/configure: (re-generated) + 2012-02-29 Jan Nijtmans <nijtmans@users.sf.net> * generic/tclIOUtil.c: [Bug 3466099] BOM in Unicode diff --git a/generic/tclLoad.c b/generic/tclLoad.c index e64d0e0..ac863b9 100644 --- a/generic/tclLoad.c +++ b/generic/tclLoad.c @@ -308,6 +308,12 @@ Tcl_LoadObjCmd( && (pkgGuess[2] == 'b')) { pkgGuess += 3; } +#ifdef __CYGWIN__ + if ((pkgGuess[0] == 'c') && (pkgGuess[1] == 'y') + && (pkgGuess[2] == 'g')) { + pkgGuess += 3; + } +#endif /* __CYGWIN__ */ for (p = pkgGuess; *p != 0; p += offset) { offset = Tcl_UtfToUniChar(p, &ch); if ((ch > 0x100) diff --git a/unix/configure b/unix/configure index 2ba3d68..43c2d1c 100755 --- a/unix/configure +++ b/unix/configure @@ -6935,6 +6935,9 @@ fi DL_LIBS="-ldl" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" + TCL_NEEDS_EXP_FILE=1 + TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.dll.a' + TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$@.a' ;; dgux*) SHLIB_CFLAGS="-K PIC" diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 78eacd9..37c7c74 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1245,6 +1245,9 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ DL_LIBS="-ldl" CC_SEARCH_FLAGS="" LD_SEARCH_FLAGS="" + TCL_NEEDS_EXP_FILE=1 + TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.dll.a' + TCL_SHLIB_LD_EXTRAS='-Wl,--out-implib,$[@].a' ;; dgux*) SHLIB_CFLAGS="-K PIC" |