]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Move -fnested-functions to CPPFLAGS to workaround
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 29 Feb 2012 14:10:13 +0000 (15:10 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 29 Feb 2012 14:10:13 +0000 (15:10 +0100)
Apple bug.

ChangeLog
configure.ac

index 29577d8c08277fac60e2f7aae9d7a9412d3fbd3e..df2789bb606028bdd1b585747f8144832e365794 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
+       Apple bug.
+
 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
index 6a9eafd394481004784349c65535f4205cd36aab..b50f3c930ad5ff2ace655e813359ead309584bdf 100644 (file)
@@ -301,8 +301,8 @@ AC_CHECK_SIZEOF(long)
 
 grub_apple_cc
 if test x$grub_cv_apple_cc = xyes ; then
-  HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1"
-  HOST_CFLAGS="$HOST_CFLAGS -fnested-functions"
+  HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1 -fnested-functions"
+  HOST_CFLAGS="$HOST_CFLAGS"
 fi
 
 if test x$USE_NLS = xno; then
@@ -454,7 +454,7 @@ fi
 grub_apple_target_cc
 if test x$grub_cv_apple_target_cc = xyes ; then
   TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"
-  TARGET_CFLAGS="$TARGET_CFLAGS -fnested-functions"
+  TARGET_CPPFLAGS="$TARGET_CPPFLAGS -fnested-functions"
 
   CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
   TARGET_APPLE_CC=1