configure.ac: Set $CPPFLAGS when checking for no_app_regs.

Fixes compilation for sparc64 with clang.
This commit is contained in:
Vladimir Serbinenko 2015-03-03 09:07:53 +01:00
parent 87ec3b7fa9
commit aa6ccc05c1

View file

@ -741,6 +741,7 @@ if test x"$target_cpu" = xsparc64 ; then
break break
fi fi
CFLAGS="$TARGET_CFLAGS $cand -Werror" CFLAGS="$TARGET_CFLAGS $cand -Werror"
CPPFLAGS="$TARGET_CPPFLAGS"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_target_cc_mno_app_regs="$cand"], []) [grub_cv_target_cc_mno_app_regs="$cand"], [])
done done