dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0020-Strengthen-the-configure-test-for-working-nostdinc-i.patch

f96e0b
From cb6d50b03d383cae32b0fbe308acc76c9d041fc6 Mon Sep 17 00:00:00 2001
f96e0b
From: =?UTF-8?q?Gr=C3=A9goire=20Sutre?= <gregoire.sutre@gmail.com>
f96e0b
Date: Sun, 5 Aug 2012 16:49:03 +0200
f96e0b
Subject: [PATCH 020/482] Strengthen the configure test for working -nostdinc
f96e0b
 -isystem.
f96e0b
f96e0b
---
f96e0b
 ChangeLog    | 4 ++++
f96e0b
 configure.ac | 1 +
f96e0b
 2 files changed, 5 insertions(+)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index dd1fda8..a0a81b1 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,3 +1,7 @@
f96e0b
+2012-08-05  Grégoire Sutre  <gregoire.sutre@gmail.com>
f96e0b
+
f96e0b
+	* configure.ac: Strengthen the test for working -nostdinc -isystem.
f96e0b
+
f96e0b
 2012-07-31  Grégoire Sutre  <gregoire.sutre@gmail.com>
f96e0b
 
f96e0b
 	* po/POTFILES.in: Regenerated.
f96e0b
diff --git a/configure.ac b/configure.ac
f96e0b
index 91b36d0..190665d 100644
f96e0b
--- a/configure.ac
f96e0b
+++ b/configure.ac
f96e0b
@@ -717,6 +717,7 @@ AC_CACHE_CHECK([whether -nostdinc -isystem works], [grub_cv_cc_isystem], [
f96e0b
   SAVED_CPPFLAGS="$CPPFLAGS"
f96e0b
   CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
f96e0b
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
f96e0b
+#include <stddef.h>
f96e0b
 int va_arg_func (int fixed, va_list args);]], [[]])],
f96e0b
       [grub_cv_cc_isystem=yes],
f96e0b
       [grub_cv_cc_isystem=no])
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b