From: Stefan Krah Date: Thu, 8 Dec 2011 21:20:31 +0000 (+0100) Subject: Issue #11149: Also enable -fwrapv if $CC is a full path X-Git-Tag: v3.2.3rc1~303 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=af04ff2b974415f3f93d70f974a40b0445cf4aca;p=thirdparty%2FPython%2Fcpython.git Issue #11149: Also enable -fwrapv if $CC is a full path or has a trailing version number. --- diff --git a/configure b/configure index eb5d19eee240..eb0ea7116e32 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 81de0d4749bb..0efe7d1b5a85 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)