From: Vladimir Serbinenko Date: Tue, 3 Mar 2015 08:07:53 +0000 (+0100) Subject: configure.ac: Set $CPPFLAGS when checking for no_app_regs. X-Git-Tag: 2.02-beta3~373 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa6ccc05c10df14bc39a6a7d9d928d8180e3ef79;p=thirdparty%2Fgrub.git configure.ac: Set $CPPFLAGS when checking for no_app_regs. Fixes compilation for sparc64 with clang. --- diff --git a/configure.ac b/configure.ac index 908bb81e7..9e24d896d 100644 --- a/configure.ac +++ b/configure.ac @@ -741,6 +741,7 @@ if test x"$target_cpu" = xsparc64 ; then break fi CFLAGS="$TARGET_CFLAGS $cand -Werror" + CPPFLAGS="$TARGET_CPPFLAGS" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])], [grub_cv_target_cc_mno_app_regs="$cand"], []) done