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>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libpkg/Makefile.com
          +++ new/usr/src/lib/libpkg/Makefile.com
↓ open down ↓ 56 lines elided ↑ open up ↑
  57   57  # openssl forces us to ignore dubious pointer casts, thanks to its clever
  58   58  # use of macros for stack management.
  59   59  LINTFLAGS=      -umx -errtags \
  60   60                  -erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST
  61   61  $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  62   62  
  63   63  
  64   64  LIBS = $(DYNLIB) $(LINTLIB)
  65   65  
  66   66  
  67      -LDLIBS +=       -lc -lssl -lwanboot -lcrypto -lscf -ladm
       67 +LDLIBS +=       -lc -lwanboot -lscf -ladm
       68 +
       69 +# libcrypto and libssl have no lint library, and so can only be used when
       70 +# building
       71 +$(DYNLIB) := LDLIBS += -lcrypto -lssl
  68   72  
  69   73  CFLAGS +=       $(CCVERBOSE)
  70   74  CERRWARN +=     -_gcc=-Wno-unused-label
  71   75  CERRWARN +=     -_gcc=-Wno-parentheses
  72   76  CERRWARN +=     -_gcc=-Wno-uninitialized
  73   77  CERRWARN +=     -_gcc=-Wno-clobbered
  74   78  CERRWARN +=     -_gcc=-Wno-switch
  75   79  CERRWARN +=     -_gcc=-Wno-unused-value
  76   80  CPPFLAGS +=     -I$(SRCDIR) -D_FILE_OFFSET_BITS=64
  77   81  
↓ open down ↓ 14 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX