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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com
          +++ new/usr/src/lib/libkmf/plugins/kmf_openssl/Makefile.com
↓ open down ↓ 32 lines elided ↑ open up ↑
  33   33  
  34   34  LIBLINKS=       $(DYNLIB:.so.1=.so)
  35   35  KMFINC=         -I../../../include -I../../../ber_der/inc
  36   36  
  37   37  BERLIB=         -lkmf -lkmfberder
  38   38  BERLIB64=       $(BERLIB)
  39   39  
  40   40  OPENSSLLIBS=    $(BERLIB) -lcrypto -lcryptoutil -lc
  41   41  OPENSSLLIBS64=  $(BERLIB64) -lcrypto -lcryptoutil -lc
  42   42  
  43      -LINTSSLLIBS     = $(BERLIB) -lcrypto -lcryptoutil -lc
  44      -LINTSSLLIBS64   = $(BERLIB64) -lcrypto -lcryptoutil -lc
       43 +LINTSSLLIBS     = $(BERLIB) -lcryptoutil -lc
       44 +LINTSSLLIBS64   = $(BERLIB64) -lcryptoutil -lc
       45 +
       46 +# OpenSSLs API includes some macro expansions that are incompatible with lint,
       47 +# depending on the version of OpenSSL used
       48 +LINTFLAGS   +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
       49 +LINTFLAGS64 +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  45   50  
  46   51  SRCDIR=         ../common
  47   52  INCDIR=         ../../include
  48   53  
  49   54  CFLAGS          +=      $(CCVERBOSE) 
  50   55  CPPFLAGS        +=      -D_REENTRANT $(KMFINC) \
  51   56                          -I$(INCDIR) -I$(ADJUNCT_PROTO)/usr/include/libxml2
  52   57  
  53   58  CERRWARN        +=      -_gcc=-Wno-unused-label
  54   59  CERRWARN        +=      -_gcc=-Wno-unused-value
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX