<URL: https://rt.cpan.org/Ticket/Display.html?id=125597 >

Hi,

   My patch for Cygwin as well as needed libtclstub8.4.a are attached. It makes 
Cygwin build method much more like Linux: No longer forcing --telconfig and no 
tcl-devel package necessary to compile it.
   Note that the directory structure and names in tclstub84_cyg.tar.gz have to 
be kept.

   Though the stub lib is 8.4, they are well compiled on both 32/64bit Cygwin 
2.10 with tcl-8.6 pre-installed and passed all 'make test' items.

SJ

--- Tcl-1.05-UjbRn3/Makefile.PL	2016-06-29 00:48:16.000000000 +0800
+++ Tcl-1.05-SJ/Makefile.PL	2018-06-22 22:50:36.943227700 +0800
@@ -45,7 +45,8 @@
     $arch = "$^O-ia64" if ($Config{archname} =~ /ia64/i);
     $arch = "$^O-x86_64" if ($Config{archname} =~ /x86_64/);
 } elsif ($^O eq "cygwin") {
-    $tclconfig = '/usr/lib/tclConfig.sh';
+    $arch = "$^O-i686" if ($Config{archname} =~ /i\d86/);
+    $arch = "$^O-x86_64" if ($Config{archname} =~ /x86_64/);
 }
 
 sub _die ($) {

Attachment: tclstub84_cyg.tar.gz
Description: application/gzip

Reply via email to