* configure.ac: Move -fnested-functions to CPPFLAGS to workaround

Apple bug.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-29 15:10:13 +01:00
parent 382775d1ac
commit 403e25a539
2 changed files with 8 additions and 3 deletions

View file

@ -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.

View 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