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>

Split Close
Expand all
Collapse all
          --- old/usr/src/grub/grub-0.97/stage2/Makefile.solaris
          +++ new/usr/src/grub/grub-0.97/stage2/Makefile.solaris
   1    1  #
   2    2  # Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
   3    3  # Use is subject to license terms.
   4    4  # Copyright (c) 2013 by Saso Kiselkov. All rights reserved.
   5    5  # Copyright 2015, OmniTI Computer Consulting, Inc. All rights reserved.
        6 +# Copyright 2015 RackTop Systems.
   6    7  #
   7    8  include ../../Makefile.grub
   8    9  include ../Makefile.solaris.defs
   9   10  
  10   11  .SUFFIXES:
  11   12  .SUFFIXES: .exec $(SUFFIXES)
  12   13  
  13   14  .exec:
  14   15          $(OBJCOPY) -O binary $< $@
  15   16  
↓ open down ↓ 13 lines elided ↑ open up ↑
  29   30  NETBOOT_CFLAGS  = -DSUPPORT_NETBOOT=1
  30   31  SERIAL_CFLAGS   = -DSUPPORT_SERIAL=1
  31   32  GRUB_CFLAGS     = -O2 -I../lib -DGRUB_UTIL=1 \
  32   33                    -DFSYS_ISO9660=1 -DFSYS_ZFS=1 -DFSYS_EXT2FS=1 -DFSYS_FAT=1 \
  33   34                    -DFSYS_UFS=1 -DFSYS_UFS2=1 \
  34   35                    -DUSE_MD5_PASSWORDS=1 -DSUPPORT_SERIAL=1
  35   36  $(OPTION_FS)GRUB_CFLAGS += -DFSYS_MINIX=1 -DFSYS_JFS=1 -DFSYS_XFS=1 \
  36   37                    -DSYS_VSTAFS=1 -DFSYS_FFS=1 -DFSYS_REISERFS=1
  37   38  # GRUB_CFLAGS   += -DSUPPORT_HERCULES=1
  38   39  STAGE1_5_CFLAGS = $(STAGE2_CFLAGS) -DNO_DECOMPRESSION=1 -DSTAGE1_5=1
  39      -STAGE2_CFLAGS   = -Os -fno-builtin -nostdinc \
       40 +STAGE2_CFLAGS   = -Os -fno-reorder-functions -fno-builtin -nostdinc \
  40   41                    $(SERIAL_CFLAGS) $(GRAPHICS_CFLAGS)
  41   42  $(STAGE2_NETBOOT)STAGE2_CFLAGS  += $(NETBOOT_CFLAGS)
  42   43  #STAGE2_CFLAGS  += $(HERCULES_CFLAGS)
  43   44  
  44   45  NBLOADER_LINK   = -nostdlib -N -Ttext 0
  45   46  PRE_STAGE2_LINK = -nostdlib -N -Ttext 8200
  46   47  PXELOADER_LINK  = -nostdlib -N -Ttext 7C00
  47   48  STAGE1_5_LINK   = -nostdlib -N -Ttext 2000
  48   49  START_ELTORITO_LINK = -nostdlib -N -Ttext 7C00
  49   50  START_LINK      = -nostdlib -N -Ttext 8000
↓ open down ↓ 898 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX