summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorKurt Fitzner <kurt@va1der.ca>2023-01-29 15:53:53 +0100
committerYves Orton <demerphq@gmail.com>2023-01-31 00:52:23 +0800
commit85d2c8e80f418c456c28213a08f692e33833b8c4 (patch)
treeb94167636aa519bfca332d13a48f86275026de60 /Configure
parentc0a24b11a0434ad8c8b1e758b952f8546d69c216 (diff)
downloadperl-85d2c8e80f418c456c28213a08f692e33833b8c4.tar.gz
Configure - fix handling of quoted gcc output
This patch was submitted in GH issue #20606. When gcc output contains quoted elements we fail to handle it properly. This tweaks the sed command to do so. Fixes #20606.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index 8865804828..f9ca862853 100755
--- a/Configure
+++ b/Configure
@@ -23778,7 +23778,7 @@ EOF
for i in \`$cc -v -c tmp.c 2>&1 $postprocess_cc_v\`
do
case "\$i" in
- -D*) echo "\$i" | $sed 's/^-D//';;
+ -D*) echo "\$i" | $sed 's/^-D//;s/['\''\"]//g';;
-A*) $test "$gccversion" && echo "\$i" | $sed 's/^-A//' | $sed 's/\(.*\)(\(.*\))/\1=\2/';;
esac
done