Commit af04ff2b authored by Stefan Krah's avatar Stefan Krah

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

or has a trailing version number.
parent 0cd47907
...@@ -5498,9 +5498,10 @@ then ...@@ -5498,9 +5498,10 @@ then
fi fi
# Clang also needs -fwrapv # Clang also needs -fwrapv
if test "$CC" = "clang" ; then case $CC in
WRAP="-fwrapv" *clang*) WRAP="-fwrapv"
fi ;;
esac
case $ac_cv_prog_cc_g in case $ac_cv_prog_cc_g in
yes) yes)
......
...@@ -928,9 +928,10 @@ then ...@@ -928,9 +928,10 @@ then
fi fi
# Clang also needs -fwrapv # Clang also needs -fwrapv
if test "$CC" = "clang" ; then case $CC in
WRAP="-fwrapv" *clang*) WRAP="-fwrapv"
fi ;;
esac
case $ac_cv_prog_cc_g in case $ac_cv_prog_cc_g in
yes) yes)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment