Subject: | Fixes for Cygwin build of PAR::Packer |
Date: | Mon, 11 Jul 2016 15:15:06 -0400 |
To: | bug-par [...] rt.cpan.org |
From: | Ken Brown <kbrown [...] cornell.edu> |
There are two problems with the build of PAR::Packer 1.033 on Cygwin:
1. The build fails with "undefined reference to `__stack_chk_fail'".
This happens starting with version 1.030 due to the removal of the line
$boot_ldflags .= $static_ldflags;
from Makefile.PL. Adding that line back (see the attached
boot_ldflags.patch) fixes the problem.
2. The method for detecting a 64-bit system in Makefile.PL, based on
$Config{archname}, doesn't work on 64-bit Cygwin. Here we have the
following:
$ perl -e 'use Config; print $Config{archname}'
cygwin-thread-multi
$ perl -e 'use Config; print $Config{myuname}'
cygwin_nt-6.3 cygwin 2.5.1(0.29753) 2016-04-21 22:14 x86_64 cygwin
So PAR::Packer should use myuname on Cygwin instead of archname. See
the attached x86_64_cygwin.patch. (This comes from a patch used by
Yaakov Selkowitz, the Cygwin maintainer of PAR::Packer.)
Ken
Message body is not shown because sender requested not to inline it.
Message body is not shown because sender requested not to inline it.