Skip to content
Tcl Source Code History Of Ticket ee9501624a9fdc5e
Login

History Of Ticket ee9501624a9fdc5e

Artifacts Associated With Ticket ee9501624a9fdc5e

  1. Ticket change [77ac5e1d59] (rid 136599) by anonymous on 2014-01-28 11:46:02:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Hi,
      
      To be able to cross compile Tcl 8.5.14 on Linux with MinGW for Windows, I have to apply the following patch:
      
      diff -ru tcl8.5.14.orig/generic/tcl.h tcl8.5.14/generic/tcl.h
      --- tcl8.5.14.orig/generic/tcl.h        2013-03-22 12:39:05.000000000 +0100
      +++ tcl8.5.14/generic/tcl.h     2013-05-26 09:28:57.000000000 +0200
      @@ -168,7 +168,7 @@
        *       MSVCRT.
        */
       
      -#if (defined(__WIN32__) && (defined(_MSC_VER) || (__BORLANDC__ >= 0x0550) || defined(__LCC__) || defined(__WATCOMC__) || (defined(__GNUC__) && defined(__declspec))))
      +#if (defined(__WIN32__) && (defined(_MSC_VER) || (defined(__BORLANDC__) && (__BORLANDC__ >= 0x0550)) || defined(__LCC__) || defined(__WATCOMC__) || (defined(__GNUC__) && defined(__declspec))))
       #   define HAVE_DECLSPEC 1
       #   ifdef STATIC_BUILD
       #       define DLLIMPORT
      
      
      I hope you can include this patch, so that I don't have to apply it over and over again :)
      
      I also have to apply the following for some reasons unknown to me, maybe you an help me understand why:
      diff -ru tcl8.5.14.orig/win/Makefile.in tcl8.5.14/win/Makefile.in
      --- tcl8.5.14.orig/win/Makefile.in      2013-04-01 20:36:36.000000000 +0200
      +++ tcl8.5.14/win/Makefile.in   2013-05-26 09:34:41.000000000 +0200
      @@ -606,7 +606,7 @@
                  $(COPY) $(REG_LIB_FILE) $(LIB_INSTALL_DIR)/reg$(REGDOTVER); \
                  fi
       
      -install-libraries: libraries install-tzdata install-msgs
      +install-libraries: libraries
              @for i in $(prefix)/lib $(INCLUDE_INSTALL_DIR) \
                      $(SCRIPT_INSTALL_DIR); \
                  do \
       and
      
      --- tcl8.5.14.orig/unix/configure       2013-04-01 20:36:35.000000000 +0200
      +++ tcl8.5.14/unix/configure    2013-05-26 09:28:57.000000000 +0200
      @@ -15068,7 +15068,7 @@
       else
       
                  if test "$cross_compiling" = yes; then
      -  tcl_cv_strtod_buggy=buggy
      +  tcl_cv_strtod_buggy=ok
       else
         cat >conftest.$ac_ext <<_ACEOF
       /* confdefs.h.  */
      
      
      I hope to hear from you soon.
      
    5. foundin initialized to: "8.5.14"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "7ef58cf72ea291c31b08aa8dbaafbc8d36ded9d9"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to: "Improve cross-compilability"
    16. type initialized to: "Patch"
  2. Ticket change [44b1f1691e] (rid 136766) by jan.nijtmans on 2014-02-06 21:53:48:

    1. assignee changed to: "jan.nijtmans"
    2. icomment:
      The first part of the patch I agree with: Existance of the __BORLANDC__ macro should be checked before using it. Modern gcc doesn't groc on that but older mingw compilers might.
      
      The other two patches are wrong: the "install-tzdata" and "install-msgs" work fine in cross-compile situation, only Tcl needs to be installed on the host BEFORE starting the cross-compile. The last patch has no relation at all to the Windows build, because it is for the UNIX configure script. Apart from that, when cross-compiling there is no way to check whether strtod is buggy, the best that can be assumed is that it is buggy, so Tcl uses its replacement.
      
      First part applied to core-8-5-branch and trunk. I regularly cross-compile Tcl for Win32/Win64 on Linux, and as far as I know it work fine. But I'm using either MinGW-w64 or MinGW-4, I don't use MinGW-3 any more.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [7e081d92bf] (rid 137037) by jan.nijtmans on 2014-02-24 15:02:07:

    1. closedate changed to: "2456713.12647794"
    2. closer changed to: "jan.nijtmans"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"