diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-04 08:22:34 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-04 09:39:46 -0400 |
commit | 2313e9ca3be65223d835c40b25c76765e8c35547 (patch) | |
tree | 919e48a5999ac877ba93e2f4a341c8344dbdbf9c /configpm | |
parent | d584a308cab484ee23984026d264bd447d452018 (diff) | |
download | perl-2313e9ca3be65223d835c40b25c76765e8c35547.tar.gz |
Grab the warnflags and stdflags from cflags [perl #122694].
They become $Config{ccwarnflags} and $Config{ccstdflags}.
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -628,6 +628,24 @@ foreach my $prefix (qw(libs libswanted)) { $heavy_txt .= "${prefix}_nolargefiles='$value'\n"; } +if (open(my $fh, "cflags")) { + my $ccwarnflags; + my $ccstdflags; + while (<$fh>) { + if (/^warn="(.+)"$/) { + $ccwarnflags = $1; + } elsif (/^stdflags="(.+)"$/) { + $ccstdflags = $1; + } + } + if (defined $ccwarnflags) { + $heavy_txt .= "ccwarnflags='$ccwarnflags'\n"; + } + if (defined $ccstdflags) { + $heavy_txt .= "ccstdflags='$ccstdflags'\n"; + } +} + $heavy_txt .= "EOVIRTUAL\n"; $heavy_txt .= <<'ENDOFGIT'; |