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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/i86xpv/Makefile.rules
          +++ new/usr/src/uts/i86xpv/Makefile.rules
↓ open down ↓ 176 lines elided ↑ open up ↑
 177  177  # This is different from i86pc - uses 64 bit compiler for 64 bit
 178  178  #
 179  179  # Note that we *don't* want to use the definitions that have been augmented
 180  180  # by various bits of the context of the kernel build environment; so we
 181  181  # start constructing flags and things afresh.
 182  182  
 183  183  DBOOT_OBJS_DIR= dboot/$(OBJS_DIR)
 184  184  
 185  185  DBOOT_XARCH_32 = $(i386_XARCH)
 186  186  DBOOT_XARCH_64 = $(amd64_XARCH)
 187      -DBOOT_CFLAGS = $(DBOOT_XARCH_$(CLASS)) $(CERRWARN) $(CCNOAUTOINLINE) -O
      187 +DBOOT_CFLAGS = $(DBOOT_XARCH_$(CLASS)) $(C99MODE) $(CERRWARN) \
      188 +    $(CCNOAUTOINLINE) -O
 188  189  
 189  190  DBOOT_AS_XARCH_32 = $(i386_AS_XARCH)
 190  191  DBOOT_AS_XARCH_64 = $(amd64_AS_XARCH)
 191  192  DBOOT_ASFLAGS = $(DBOOT_AS_XARCH_$(CLASS)) -P -D_ASM
 192  193  
 193  194  DBOOT_LINTFLAGS_i86xpv  = $(LINTFLAGS_i386_$(CLASS)) $(LINTTAGS_i386_$(CLASS))
 194  195  
 195  196  $(DBOOT_OBJS_DIR)/%.o:          $(UTSBASE)/common/xen/os/%.c
 196  197          $(CC) $(DBOOT_CFLAGS) $(DBOOT_DEFS) $(DBOOT_CC_INCL) -c -o $@ $<
 197  198  
↓ open down ↓ 75 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX