Print this page
6648 illumos build should be explicit about C standards

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86pc/Makefile.rules
          +++ new/usr/src/uts/i86pc/Makefile.rules
↓ open down ↓ 211 lines elided ↑ open up ↑
 212  212          $(CTFCONVERT_O)
 213  213  
 214  214  #
 215  215  # dboot stuff is always 32 bit, linked to run with phys_addr == virt_addr
 216  216  #
 217  217  DBOOT_OBJS_DIR  = dboot/$(OBJS_DIR)
 218  218  DBOOT_MACH_32   = -D_BOOT_TARGET_i386
 219  219  DBOOT_MACH_64   = -D_BOOT_TARGET_amd64
 220  220  DBOOT_DEFS      = -D_BOOT $(DBOOT_MACH_$(CLASS))
 221  221  DBOOT_DEFS      += -D_MACHDEP -D_KMEMUSER -U_KERNEL -D_I32LPx
 222      -DBOOT_FLAGS     = $(CCVERBOSE) $(CERRWARN) $(CCNOAUTOINLINE)
      222 +DBOOT_FLAGS     = $(CCVERBOSE) $(C99MODE) $(CERRWARN) $(CCNOAUTOINLINE)
 223  223  
 224  224  DBOOT_CC_INCL   = -I$(SRC)/common -I$(SRC)/common/util $(INCLUDE_PATH)
 225  225  DBOOT_AS_INCL   = $(AS_INC_PATH)
 226  226  
 227  227  DBOOT_AS        = $(ONBLD_TOOLS)/bin/$(MACH)/aw
 228  228  
 229  229  DBOOT_LINTS_DIR = $(DBOOT_OBJS_DIR)
 230  230  DBOOT_LINTFLAGS_i86pc   = $(LINTFLAGS_i386_32) $(LINTTAGS_i386_32)
 231  231  
 232  232  DBOOT_LINTFLAGS = $(DBOOT_LINTFLAGS_$(PLATFORM)) $(LINTTAGS) $(C99LMODE) \
↓ open down ↓ 4 lines elided ↑ open up ↑
 237  237  $(DBOOT_OBJS_DIR)/%.o:          $(UTSBASE)/i86pc/boot/%.c
 238  238          $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
 239  239  
 240  240  $(DBOOT_OBJS_DIR)/%.o:          $(UTSBASE)/i86pc/dboot/%.c
 241  241          $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
 242  242  
 243  243  $(DBOOT_OBJS_DIR)/%.o:          $(UTSBASE)/intel/ia32/%.s
 244  244          $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
 245  245  
 246  246  $(DBOOT_OBJS_DIR)/%.o:          $(COMMONBASE)/crypto/sha1/%.c
 247      -        $(i386_CC) $(CERRWARN) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
      247 +        $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
 248  248  
 249  249  $(DBOOT_OBJS_DIR)/%.o:          $(COMMONBASE)/util/%.c
 250  250          $(i386_CC) $(DBOOT_FLAGS) -O $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
 251  251  
 252  252  $(DBOOT_OBJS_DIR)/%.o:          $(COMMONBASE)/util/i386/%.s
 253  253          $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
 254  254  
 255  255  $(DBOOT_OBJS_DIR)/%.o:          $(UTSBASE)/i86pc/dboot/%.s
 256  256          $(DBOOT_AS) -P -D_ASM $(DBOOT_DEFS) $(DBOOT_AS_INCL) -o $@ $<
 257  257  
↓ open down ↓ 216 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX