summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2011-12-08 21:20:31 (GMT)
committerStefan Krah <skrah@bytereef.org>2011-12-08 21:20:31 (GMT)
commitaf04ff2b974415f3f93d70f974a40b0445cf4aca (patch)
treee513eb4d809c61bf189a81f1294b7ffd4ee51fd7
parent0cd479074d3e607e81661e73440eff87264cf737 (diff)
downloadcpython-af04ff2b974415f3f93d70f974a40b0445cf4aca.zip
cpython-af04ff2b974415f3f93d70f974a40b0445cf4aca.tar.gz
cpython-af04ff2b974415f3f93d70f974a40b0445cf4aca.tar.bz2
Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
-rwxr-xr-xconfigure7
-rw-r--r--configure.in7
2 files changed, 8 insertions, 6 deletions
diff --git a/configure b/configure
index eb5d19e..eb0ea71 100755
--- a/configure
+++ b/configure
@@ -5498,9 +5498,10 @@ then
fi
# Clang also needs -fwrapv
- if test "$CC" = "clang" ; then
- WRAP="-fwrapv"
- fi
+ case $CC in
+ *clang*) WRAP="-fwrapv"
+ ;;
+ esac
case $ac_cv_prog_cc_g in
yes)
diff --git a/configure.in b/configure.in
index 81de0d4..0efe7d1 100644
--- a/configure.in
+++ b/configure.in
@@ -928,9 +928,10 @@ then
fi
# Clang also needs -fwrapv
- if test "$CC" = "clang" ; then
- WRAP="-fwrapv"
- fi
+ case $CC in
+ *clang*) WRAP="-fwrapv"
+ ;;
+ esac
case $ac_cv_prog_cc_g in
yes)