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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com
          +++ new/usr/src/lib/krb5/plugins/preauth/pkinit/Makefile.com
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright 2017 RackTop Systems.
  25   26  #
       27 +#
  26   28  
  27   29  LIBRARY= pkinit.a
  28   30  VERS= .1
  29   31  
  30   32  PKINIT_OBJS= \
  31   33          pkinit_accessor.o \
  32   34          pkinit_clnt.o \
  33   35          pkinit_crypto_openssl.o \
  34   36          pkinit_identity.o \
  35   37          pkinit_lib.o \
↓ open down ↓ 29 lines elided ↑ open up ↑
  65   67                  -I$(SRC)/uts/common/gssapi/mechs/krb5/include \
  66   68                  -I$(SRC)
  67   69  
  68   70  CERRWARN        += -_gcc=-Wno-uninitialized
  69   71  CERRWARN        += -_gcc=-Wno-unused-function
  70   72  
  71   73  CFLAGS +=       $(CCVERBOSE) -I..
  72   74  DYNFLAGS +=     $(KRUNPATH) $(KMECHLIB) -znodelete
  73   75  LDLIBS +=       -L $(ROOTLIBDIR) -lcrypto -lc
  74   76  
       77 +# Allow libcrypto to be taken from outside the proto area.
       78 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
       79 +
  75   80  ROOTLIBDIR= $(ROOT)/usr/lib/krb5/plugins/preauth
  76   81  
  77   82  $(ROOTLIBDIR):
  78   83          $(INS.dir)
  79   84  
  80   85  .KEEP_STATE:
  81   86  
  82   87  all:    $(LIBS)
  83   88  
  84   89  lint:   lintcheck
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX