Print this page
6482 GRUB won't boot when built with GCC 5
6484 GRUB should specify c89 for GCC 5
Reviewed by: Kim Shrier <kshrier@racktopsystems.com>

@@ -1,9 +1,11 @@
 #
 # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2015 RackTop Systems.
+#
 include $(SRC)/Makefile.master
 
 .KEEP_STATE:
 
 VERSION         = 0.95

@@ -40,12 +42,12 @@
 OPTION_UTILS    = $(POUND_SIGN)
 OPTION_DOCS     = $(POUND_SIGN)
 OPTION_FS       = $(POUND_SIGN)
 
 
-BASE_CFLAGS     = -B$(GCC_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS)
-BASE_CCASFLAGS  = -B$(GCC_ROOT)/bin/ -g $(CPPFLAGS) $(OPTFLAGS)
+BASE_CFLAGS     = -B$(GCC_ROOT)/bin/ -g -std=gnu89 $(CPPFLAGS) $(OPTFLAGS)
+BASE_CCASFLAGS  = -B$(GCC_ROOT)/bin/ -g -std=gnu89 $(CPPFLAGS) $(OPTFLAGS)
 BASE_LDFLAGS    =
 
 CC              = $(GCC_ROOT)/bin/gcc
 CFLAGS          = $(BASE_CFLAGS)
 CCDEPMODE       = depmode=none