From: Vladimir Serbinenko Date: Mon, 25 Mar 2019 15:09:04 +0000 (+0100) Subject: configure.ac: Use nostdlib when checking for nostdinc X-Git-Tag: grub-2.04-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c25a1c93c58831d5cf38ddb4c1ac48a4a8fbb71a;p=thirdparty%2Fgrub.git 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 --- 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);]], [[]])],