X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/8b4a1c96a99236cf05ec1932866aa67135dc76b9..1dc0863403466d6a42cc331d1f6a8f0506b313a3:/configpm?ds=sidebyside diff --git a/configpm b/configpm index d5bf5f2..21bd3ef 100755 --- a/configpm +++ b/configpm @@ -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';