Issue #11149: Also enable -fwrapv if $CC is a full path

or has a trailing version number.
This commit is contained in:
Stefan Krah 2011-12-08 22:20:31 +01:00
parent 0cd479074d
commit af04ff2b97
2 changed files with 8 additions and 6 deletions

7
configure vendored
View File

@ -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)

View File

@ -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)