changeset: 72379:feed6d2097b1 branch: 2.7 parent: 72372:e8d8eb9e05fd user: Stefan Krah date: Wed Sep 14 15:19:42 2011 +0200 files: configure configure.in description: Backport fix for issue #11149. diff -r e8d8eb9e05fd -r feed6d2097b1 configure --- a/configure Tue Sep 13 06:42:21 2011 +0800 +++ b/configure Wed Sep 14 15:19:42 2011 +0200 @@ -5411,6 +5411,12 @@ 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 -r e8d8eb9e05fd -r feed6d2097b1 configure.in --- a/configure.in Tue Sep 13 06:42:21 2011 +0800 +++ b/configure.in Wed Sep 14 15:19:42 2011 +0200 @@ -932,6 +932,12 @@ 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