From: Stefan Krah Date: Wed, 14 Sep 2011 13:19:42 +0000 (+0200) Subject: Backport fix for issue #11149. X-Git-Tag: v2.7.3rc1~453 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=503e5e12c27bf130d388e09fe770d16d9b486821;p=thirdparty%2FPython%2Fcpython.git Backport fix for issue #11149. --- diff --git a/configure b/configure index 99a7c718bafe..7d6423ad2b83 100755 --- a/configure +++ b/configure @@ -5411,6 +5411,12 @@ then if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then WRAP="-fwrapv" fi + + # Clang also needs -fwrapv + if test "$CC" = "clang" ; then + WRAP="-fwrapv" + fi + case $ac_cv_prog_cc_g in yes) if test "$Py_DEBUG" = 'true' ; then diff --git a/configure.in b/configure.in index acd35d843ddc..9d7bfa6f8fa3 100644 --- a/configure.in +++ b/configure.in @@ -932,6 +932,12 @@ then if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then WRAP="-fwrapv" fi + + # Clang also needs -fwrapv + if test "$CC" = "clang" ; then + WRAP="-fwrapv" + fi + case $ac_cv_prog_cc_g in yes) if test "$Py_DEBUG" = 'true' ; then