Skip to content

Commit

Permalink
WIP --cross=path/config.sh support
Browse files Browse the repository at this point in the history
See GH #428
  • Loading branch information
rurban committed Nov 17, 2018
1 parent bc9d11b commit 0e147c0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ sub write_b_c_config {
print PH "# broken or patched upstream 5.22 ByteLoader. undef for yet undecided\n";
$have_byteloader = 0 if $Config{usecperl}; # have it, but still broken
print PH "\$have_byteloader = $have_byteloader;\n";
print PH "# cperl 5.22.2:\n";
print PH "# since cperl 5.22.2:\n";
print PH "\$have_op_rettype = $have_op_rettype;\n";
print PH "\$have_HEK_STATIC = $have_HEK_STATIC;\n";
print PH "# use extra compiler flags, after ccopts, resp. ldopts\n";
Expand All @@ -120,7 +120,10 @@ sub write_b_c_config {
static_ext usecperl usedl useithreads uselongdouble usemultiplicity
usemymalloc uvuformat))
{
if ($CORE) {
if ($cross) { # -cross=path/config.sh values
my $v = cross_config($cross, $s);
}
elsif ($CORE) {
my $v = $Config::Config{$s};
if (!defined $v) {
$v = 'undef';
Expand Down

0 comments on commit 0e147c0

Please sign in to comment.