summaryrefslogtreecommitdiffstats
path: root/configure
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 /configure
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 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)