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

@@ -64,11 +64,11 @@
 install: all $(DIRS) $(ROOTTZSRCD) $(ROOTTZTABD) $(ROOTUSRSBINPROG) \
                 $(ROOTLIBTZSRCFILES) $(ROOTLIBTZTABFILES) $(ROOTKSHPROG)
         $(NPROG) -d $(ROOTTZD) $(TZFILES)
 
 $(NPROG): $(NATIVE) $(NOBJS)
-        $(NATIVECC) -o $@ $(NOBJS)
+        $(NATIVECC) $(NATIVE_CFLAGS) -o $@ $(NOBJS)
 
 #
 # XXX
 # There is a .ksh rule in Makefile.targ, but we need our custom POFILE rules.
 #

@@ -93,20 +93,14 @@
         $(RM) $(OBJS)
 
 lint: lint_SRCS
 
 $(NOBJS): $$(@F:.o=.c)
-        $(NATIVECC) -O $(NCPPFLAGS) -c -o $@ $(@F:.o=.c)
+        $(NATIVECC) -O $(NATIVE_CFLAGS) $(NCPPFLAGS) -c -o $@ $(@F:.o=.c)
 
 $(NATIVE)/zic.o: $(NATIVE)/tzfile.h
 
-#$(NATIVE)/scheck.o: scheck.c
-#       $(NATIVECC) -c -o $@ scheck.c
-
-#$(NATIVE)/ialloc.o: ialloc.c
-#       $(NATIVECC) -c -o $@ ialloc.c
-
 $(NATIVE)/tzfile.h: $(ROOT)/usr/include/tzfile.h
         $(RM) $@; cp $(ROOT)/usr/include/tzfile.h $@
 
 #
 # From ../Makefile.targ