diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-11-22 16:43:52 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-11-22 16:43:52 +0000 |
commit | 8f3e4e1daccc5d9ed39caa33f97aeecf8327d2d6 (patch) | |
tree | 78bbfa4fd8ad1dd7c764e3115751ca55afa4dafe | |
parent | de1b2d65f04342fd000f091354590c52d0d4c3ba (diff) | |
download | perl-8f3e4e1daccc5d9ed39caa33f97aeecf8327d2d6.tar.gz |
For SDBM_File, stop EU::MM from generating its default subdirs rule.
The default subdirs rule creates a race condition with the rule that
Makefile.PL explicitly adds to generate libsdbm.a, which can cause parallel
makes to fail.
Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
-rw-r--r-- | ext/SDBM_File/Makefile.PL | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/SDBM_File/Makefile.PL b/ext/SDBM_File/Makefile.PL index fa16a79160..b96b80bfb8 100644 --- a/ext/SDBM_File/Makefile.PL +++ b/ext/SDBM_File/Makefile.PL @@ -23,6 +23,12 @@ WriteMakefile( PERL_MALLOC_OK => 1, ); +# We don't want the default subdir rule, as it creates a race condition with the +# rule we add below. +sub MY::subdir_x { + return ''; +} + sub MY::postamble { if ($^O =~ /MSWin32/ && !defined($ENV{SYSTEMROOT})) { if ($Config{'make'} =~ /dmake/i) { |