From: Stefan Krah Date: Wed, 14 Sep 2011 13:14:08 +0000 (+0200) Subject: Issue #11149: recent versions of clang require the -fwrapv flag. X-Git-Tag: v3.2.3rc1~568 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=962055d3c658e9b2e75ba4c3682c3639eea9aed8;p=thirdparty%2FPython%2Fcpython.git Issue #11149: recent versions of clang require the -fwrapv flag. --- diff --git a/configure b/configure index 9d85e359b1da..de53c09b7e35 100755 --- a/configure +++ b/configure @@ -5504,6 +5504,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 3e60d8e01654..1bbb559aed32 100644 --- a/configure.in +++ b/configure.in @@ -926,6 +926,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