Print this page
8411 Build should warn when linking against libraries outside proto area

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 ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
       24 +# Copyright 2017 RackTop Systems.
       25 +#
  24   26  # Makefile for KMF Plugins
  25   27  #
  26   28  
  27   29  LIBRARY=        kmf_openssl.a
  28   30  VERS=           .1
  29   31  
  30   32  OBJECTS=        openssl_spi.o
  31   33  
  32   34  include $(SRC)/lib/Makefile.lib
  33   35  
↓ open down ↓ 2 lines elided ↑ open up ↑
  36   38  
  37   39  BERLIB=         -lkmf -lkmfberder
  38   40  BERLIB64=       $(BERLIB)
  39   41  
  40   42  OPENSSLLIBS=    $(BERLIB) -lcrypto -lcryptoutil -lc
  41   43  OPENSSLLIBS64=  $(BERLIB64) -lcrypto -lcryptoutil -lc
  42   44  
  43   45  LINTSSLLIBS     = $(BERLIB) -lcrypto -lcryptoutil -lc
  44   46  LINTSSLLIBS64   = $(BERLIB64) -lcrypto -lcryptoutil -lc
  45   47  
       48 +# Allow libcrypto to be taken from outside the proto area.
       49 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
       50 +
  46   51  # Because of varying openssl implementations, we need to not have lint
  47   52  # complain if we're being liberal in our suppression directives.
  48   53  LINTFLAGS       +=      -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  49   54  LINTFLAGS64     +=      -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  50   55  
  51   56  SRCDIR=         ../common
  52   57  INCDIR=         ../../include
  53   58  
  54   59  CFLAGS          +=      $(CCVERBOSE) 
  55   60  CPPFLAGS        +=      -D_REENTRANT $(KMFINC) \
↓ open down ↓ 26 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX