All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Grégoire Sutre" <gregoire.sutre@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: [PATCH] Strengthen the test for working -nostdinc -isystem
Date: Wed, 01 Aug 2012 01:20:43 +0200	[thread overview]
Message-ID: <5018684B.30803@gmail.com> (raw)

[-- 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])

             reply	other threads:[~2012-07-31 23:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 23:20 Grégoire Sutre [this message]
2012-08-05 10:02 ` [PATCH] Strengthen the test for working -nostdinc -isystem Vladimir 'φ-coder/phcoder' Serbinenko
2012-08-05 14:52   ` Grégoire Sutre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5018684B.30803@gmail.com \
    --to=gregoire.sutre@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.