Skip to contentSkip to conversation

Strengthen the test for working -nostdinc -isystem

PATCH In review Grégoire Sutre 2 participants 3 messages Jul 31, 2012 – Aug 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Strengthen the test for working -nostdinc -isystem

This prevents configure from believing that -nostdinc -isystem works in some cases where it doesn't (NetBSD with non-native gcc 4.4).

The patch simply adds the requirement that #include <stddef.h> works with -nostdinc -isystem.

Grégoire

configure.ac renamed from configure.ac.orig +1 -0
@@ -717,6 +717,7 @@ AC_CACHE_CHECK([whether -nostdinc -isyst
   SAVED_CPPFLAGS="$CPPFLAGS"
   CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
+#include <stddef.h>
 int va_arg_func (int fixed, va_list args);]], [[]])],
       [grub_cv_cc_isystem=yes],
       [grub_cv_cc_isystem=no])
#1 lore raw
Quoted 7 lines · Grégoire Sutre

This prevents configure from believing that -nostdinc -isystem works in some cases where it doesn't (NetBSD with non-native gcc 4.4).

The patch simply adds the requirement that #include <stddef.h> works with -nostdinc -isystem.

Go ahead.

Quoted 7 lines

Grégoire

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#2 lore raw
Quoted 11 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 7 lines · Grégoire Sutre

This prevents configure from believing that -nostdinc -isystem works in some cases where it doesn't (NetBSD with non-native gcc 4.4).

The patch simply adds the requirement that #include<stddef.h> works with -nostdinc -isystem.

Go ahead.

Done. Thanks,

Grégoire