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

Split Close
Expand all
Collapse all
          --- old/usr/src/test/zfs-tests/tests/functional/checksum/Makefile.subdirs
          +++ new/usr/src/test/zfs-tests/tests/functional/checksum/Makefile.subdirs
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19  TESTDIR = $(ROOTOPTPKG)/tests/functional/checksum
  20   20  
  21   21  OBJS = $(PROG:%=%.o)
  22   22  SRCS = $(OBJS:%.o=../%.c)
  23   23  
  24   24  CMD32 = $(PROG:%=$(TESTDIR)/%.$(MACH))
  25   25  CMD64 = $(PROG:%=$(TESTDIR)/%.$(MACH64))
  26   26  CMDS = $(CMD32) $(CMD64)
  27   27  $(CMDS) := FILEMODE = 0555
  28   28  
  29      -C99MODE = -xc99=%all
  30      -CFLAGS = -I $(SRC)/uts/common -D_KERNEL
       29 +C99MODE = $(C99_ENABLE)
       30 +CFLAGS += -I $(SRC)/uts/common -D_KERNEL
  31   31  LDLIBS += -lmd
  32   32  LINTFLAGS += -u
  33   33  LINTFLAGS64 += -u
  34   34  
  35   35  all: $(PROG) $(TESTDIR)
  36   36  
  37   37  lint: lint_SRCS
  38   38  
  39   39  clobber: clean
  40   40  
↓ open down ↓ 17 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX