All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Strengthen the test for working -nostdinc -isystem
@ 2012-07-31 23:20 Grégoire Sutre
  2012-08-05 10:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Grégoire Sutre @ 2012-07-31 23:20 UTC (permalink / raw)
  To: The development of GNU GRUB

[-- Attachment #1: Type: text/plain, Size: 239 bytes --]

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

[-- Attachment #2: patch-configure.ac --]
[-- Type: text/plain, Size: 455 bytes --]

--- configure.ac.orig	2012-07-28 17:41:28.000000000 +0000
+++ configure.ac
@@ -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])

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-05 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 23:20 [PATCH] Strengthen the test for working -nostdinc -isystem Grégoire Sutre
2012-08-05 10:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-08-05 14:52   ` Grégoire Sutre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.