Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0 (fix openssl 0.9.8 lint)


  67 $(DYNLIB) := LDLIBS += -lcrypto -lssl
  68 
  69 CPPFLAGS =      -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master)
  70 CERRWARN +=     -_gcc=-Wno-switch
  71 CERRWARN +=     -_gcc=-Wno-parentheses
  72 CERRWARN +=     -_gcc=-Wno-unused-value
  73 CERRWARN +=     -_gcc=-Wno-uninitialized
  74 
  75 # Must override SRCS from Makefile.lib since sources have
  76 # multiple source directories.
  77 SRCS =          $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
  78 
  79 # Must define location of lint library source.
  80 SRCDIR =        $(LOC_DIR)
  81 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  82 
  83 # OpenSSL requires us to turn this off
  84 LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
  85 LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN
  86 




  87 CFLAGS +=       $(CCVERBOSE)
  88 CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
  89 
  90 .KEEP_STATE:
  91 
  92 all: $(LIBS)
  93 
  94 lint: lintcheck
  95 
  96 pics/%.o: $(COM_DIR)/%.c
  97         $(COMPILE.c) -o $@ $<
  98         $(POST_PROCESS_O)
  99 
 100 pics/%.o: $(DHCP_DIR)/%.c
 101         $(COMPILE.c) -o $@ $<
 102         $(POST_PROCESS_O)
 103 
 104 include ../../Makefile.targ


  67 $(DYNLIB) := LDLIBS += -lcrypto -lssl
  68 
  69 CPPFLAGS =      -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master)
  70 CERRWARN +=     -_gcc=-Wno-switch
  71 CERRWARN +=     -_gcc=-Wno-parentheses
  72 CERRWARN +=     -_gcc=-Wno-unused-value
  73 CERRWARN +=     -_gcc=-Wno-uninitialized
  74 
  75 # Must override SRCS from Makefile.lib since sources have
  76 # multiple source directories.
  77 SRCS =          $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
  78 
  79 # Must define location of lint library source.
  80 SRCDIR =        $(LOC_DIR)
  81 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  82 
  83 # OpenSSL requires us to turn this off
  84 LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
  85 LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN
  86 
  87 # OpenSSL 1.0 and 0.9.8 produce different lint warnings
  88 LINTFLAGS   +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  89 LINTFLAGS64 +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  90 
  91 CFLAGS +=       $(CCVERBOSE)
  92 CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
  93 
  94 .KEEP_STATE:
  95 
  96 all: $(LIBS)
  97 
  98 lint: lintcheck
  99 
 100 pics/%.o: $(COM_DIR)/%.c
 101         $(COMPILE.c) -o $@ $<
 102         $(POST_PROCESS_O)
 103 
 104 pics/%.o: $(DHCP_DIR)/%.c
 105         $(COMPILE.c) -o $@ $<
 106         $(POST_PROCESS_O)
 107 
 108 include ../../Makefile.targ