From c25a1c93c58831d5cf38ddb4c1ac48a4a8fbb71a Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 25 Mar 2019 16:09:04 +0100 Subject: [PATCH] configure.ac: Use nostdlib when checking for nostdinc With clang nostdinc behaviour is influenced by nostdlib. Since we always add nostdlib, add it in test as well Reviewed-by: Daniel Kiper Signed-off-by: Vladimir Serbinenko --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 05d040cd6..2f53a5683 100644 --- a/configure.ac +++ b/configure.ac @@ -1395,7 +1395,7 @@ AC_SUBST(TARGET_NMFLAGS_DEFINED_ONLY) if test "$platform" != emu; then AC_CACHE_CHECK([whether -nostdinc -isystem works], [grub_cv_cc_isystem], [ SAVED_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`" + CPPFLAGS="$TARGET_CPPFLAGS -nostdlib -nostdinc -isystem `$TARGET_CC -print-file-name=include`" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include #include int va_arg_func (int fixed, va_list args);]], [[]])],