summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-08-31 19:04:18 +0100
committerDavid Mitchell <davem@iabyn.com>2010-08-31 19:24:17 +0100
commit42ef68d0ff6e79e15cdacdaaa22748f5d00210b0 (patch)
treea53dd793de7ac26ff4b099f3e926cf7f1bf651be
parent1456b5bcbb5972c952d3db483e262e10ea69f2a6 (diff)
downloadperl-42ef68d0ff6e79e15cdacdaaa22748f5d00210b0.tar.gz
better silencing of APItest deprecation warning
Commit 95ddc6755c1ff41d06e5afc2212c85f918ebcd28 attempted to add -Wno-deprecated-declarations' to the ccflags for APItest.xs; however it ended up deleting existing flags rather than appending. Under -DDEBUG_LEAKING_SCALARS this caused the PerlInterpreter structure to have different field alignments in core and APItest.xs. Ouch!
-rw-r--r--ext/XS-APItest/Makefile.PL3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/XS-APItest/Makefile.PL b/ext/XS-APItest/Makefile.PL
index 24b8f10403..9b76a2919d 100644
--- a/ext/XS-APItest/Makefile.PL
+++ b/ext/XS-APItest/Makefile.PL
@@ -2,6 +2,7 @@ use 5.008;
use ExtUtils::MakeMaker;
use ExtUtils::Constant 0.11 'WriteConstants';
use Config;
+
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
@@ -20,7 +21,7 @@ WriteMakefile(
# 'OBJECT' => '$(O_FILES)', # link all the C files too
realclean => {FILES => 'const-c.inc const-xs.inc'},
($Config{gccversion} && $Config{d_attribute_deprecated} ?
- (CCFLAGS => '-Wno-deprecated-declarations') : ()),
+ (CCFLAGS => $Config{ccflags} . ' -Wno-deprecated-declarations') : ()),
);
WriteConstants(