Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0
Reviewed by Keith Wesolowski <keith.wesolowski@joyent.com>
Reviewed by Alexander Eremin <alexander.eremin@nexenta.com>


  43                 http_errorstr.o \
  44                 p12access.o \
  45                 p12auxpars.o \
  46                 p12auxutl.o \
  47                 p12err.o \
  48                 p12misc.o \
  49                 parseURL.o
  50 COM_SRCS =      $(COM_OBJS:%.o=$(COM_DIR)/%.c)
  51 
  52 # List of common DHCP modules.
  53 DHCP_DIR =      $(SRC)/common/net/dhcp
  54 DHCP_OBJS =     dhcpinfo.o
  55 DHCP_SRCS =     $(DHCP_OBJS:%.o=$(DHCP_DIR)/%.c)
  56 
  57 OBJECTS =       $(LOC_OBJS) $(COM_OBJS) $(DHCP_OBJS)
  58 
  59 include ../../Makefile.lib
  60 
  61 LIBS +=         $(LINTLIB)
  62 LDLIBS +=       -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \
  63                 -linetutil -lc -lcrypto -lssl





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


  43                 http_errorstr.o \
  44                 p12access.o \
  45                 p12auxpars.o \
  46                 p12auxutl.o \
  47                 p12err.o \
  48                 p12misc.o \
  49                 parseURL.o
  50 COM_SRCS =      $(COM_OBJS:%.o=$(COM_DIR)/%.c)
  51 
  52 # List of common DHCP modules.
  53 DHCP_DIR =      $(SRC)/common/net/dhcp
  54 DHCP_OBJS =     dhcpinfo.o
  55 DHCP_SRCS =     $(DHCP_OBJS:%.o=$(DHCP_DIR)/%.c)
  56 
  57 OBJECTS =       $(LOC_OBJS) $(COM_OBJS) $(DHCP_OBJS)
  58 
  59 include ../../Makefile.lib
  60 
  61 LIBS +=         $(LINTLIB)
  62 LDLIBS +=       -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \
  63                 -linetutil -lc
  64 
  65 # libcrypto and libssl have no lint library, so we can only use it when
  66 # building
  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)