Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0
        
*** 55,72 ****
  # This library is NOT lint clean
  
  # openssl forces us to ignore dubious pointer casts, thanks to its clever
  # use of macros for stack management.
  LINTFLAGS=      -umx -errtags \
!                 -erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST
  $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  
  
  LIBS = $(DYNLIB) $(LINTLIB)
  
  
! LDLIBS +=       -lc -lssl -lwanboot -lcrypto -lscf -ladm
  
  CFLAGS +=       $(CCVERBOSE)
  CERRWARN +=     -_gcc=-Wno-unused-label
  CERRWARN +=     -_gcc=-Wno-parentheses
  CERRWARN +=     -_gcc=-Wno-uninitialized
--- 55,76 ----
  # This library is NOT lint clean
  
  # openssl forces us to ignore dubious pointer casts, thanks to its clever
  # use of macros for stack management.
  LINTFLAGS=      -umx -errtags \
!                 -erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST,E_SUPPRESSION_DIRECTIVE_UNUSED
  $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  
  
  LIBS = $(DYNLIB) $(LINTLIB)
  
  
! LDLIBS +=       -lc -lwanboot -lscf -ladm
! 
! # libcrypto and libssl have no lint library, and so can only be used when
! # building
! $(DYNLIB) := LDLIBS += -lcrypto -lssl
  
  CFLAGS +=       $(CCVERBOSE)
  CERRWARN +=     -_gcc=-Wno-unused-label
  CERRWARN +=     -_gcc=-Wno-parentheses
  CERRWARN +=     -_gcc=-Wno-uninitialized