diff options
author | Tony Cook <tony@develop-help.com> | 2018-07-30 21:00:52 +1000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2019-04-02 12:22:25 +0100 |
commit | dd4f2e4b8b5a0802beb673fe4bc6d2609e06e2f5 (patch) | |
tree | 36d50948e4585a78a1c6533a1b1273e7b6a1a90e | |
parent | cc4fcc275d00b7ab08f262873d4a2a5660fdfdb5 (diff) | |
download | perl-dd4f2e4b8b5a0802beb673fe4bc6d2609e06e2f5.tar.gz |
(perl #133411) don't try to load Storable with -Dusecrosscompile
(cherry picked from commit edf639fce3e8c8852ee4179ab902b357b1deba98)
-rw-r--r-- | dist/Storable/Makefile.PL | 9 | ||||
-rw-r--r-- | dist/Storable/stacksize | 10 |
2 files changed, 15 insertions, 4 deletions
diff --git a/dist/Storable/Makefile.PL b/dist/Storable/Makefile.PL index 697750566d..092bab426a 100644 --- a/dist/Storable/Makefile.PL +++ b/dist/Storable/Makefile.PL @@ -90,12 +90,19 @@ sub depend { # blib.pm needs arch/lib $extra_deps = ' Storable.pm'; } + my $whichperl; + if ($Config::Config{usecrosscompile}) { + $whichperl = '$(PERLRUN)'; + } + else { + $whichperl = '$(FULLPERLRUNINST)'; + } my $linktype = uc($_[0]->{LINKTYPE}); my $limit_pm = File::Spec->catfile('lib', 'Storable', 'Limit.pm'); " $limit_pm : stacksize \$(INST_$linktype)$extra_deps \$(MKPATH) \$(INST_LIB) - \$(FULLPERLRUNINST) stacksize $options + $whichperl stacksize $options release : dist git tag \$(VERSION) diff --git a/dist/Storable/stacksize b/dist/Storable/stacksize index 7abd3a84cc..14e0739734 100644 --- a/dist/Storable/stacksize +++ b/dist/Storable/stacksize @@ -7,6 +7,9 @@ use Cwd; use File::Spec; use strict; +-d "lib" or mkdir "lib"; +-d "lib/Storable" or mkdir "lib/Storable"; + my $fn = "lib/Storable/Limit.pm"; my $ptrsize = $Config{ptrsize}; my ($bad1, $bad2) = (65001, 25000); @@ -29,6 +32,10 @@ sub is_miniperl { } if (is_miniperl()) { + if ($Config{usecrosscompile}) { + write_limits(500, 265); + exit; + } die "Should not run during miniperl\n"; } my $prefix = ""; @@ -68,9 +75,6 @@ if ($ENV{PERL_CORE}) { } } --d "lib" or mkdir "lib"; --d "lib/Storable" or mkdir "lib/Storable"; - if ($^O eq "MSWin32") { require Win32; my ($str, $major, $minor) = Win32::GetOSVersion(); |