Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/krb5/kwarn/Makefile
          +++ new/usr/src/cmd/krb5/kwarn/Makefile
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
  26      -# Copyright (c) 2018, Joyent, Inc.
       26 +# Copyright 2020 Joyent, Inc.
  27   27  
  28   28  TESTPROG = kwarndtest 
  29   29  
  30   30  PROG= ktkt_warnd
  31   31  MANIFEST=       ktkt_warn.xml
  32   32  
  33   33  KWARNDOBJS = kwarnd.o kwarnd_svc.o kwarnd_proc.o kwarnd_generic.o kwarnd_send.o
  34   34  KWARNTOBJS = kwarndtest.o
  35   35  
  36   36  G_OBJS   = kwarnd_xdr.o 
↓ open down ↓ 23 lines elided ↑ open up ↑
  60   60  # not linted
  61   61  SMATCH=off
  62   62  
  63   63  CPPFLAGS += -I../../lib/gss_mechs/mech_krb5/include \
  64   64                   -I$(SRC)/lib/gss_mechs/mech_krb5 \
  65   65                   -I$(SRC)/lib/gss_mechs/mech_krb5/include \
  66   66                   -I$(SRC)/uts/common/gssapi/mechs/krb5/include
  67   67  
  68   68  ktkt_warnd :=   MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
  69   69  ktkt_warnd :=   LDFLAGS +=      $(KRUNPATH) $(MAPFILES:%=-M%)
       70 +ktkt_warnd :=   LDLIBS +=       -lnsl
  70   71  
  71   72  LDFLAGS +=      $(KRUNPATH)
  72      -LDLIBS +=       $(KMECHLIB) -lnsl
       73 +LDLIBS +=       $(KMECHLIB)
  73   74  
  74   75  .KEEP_STATE:
  75   76  
  76   77  all: $(PROG) $(TESTPROG)
  77   78  
  78   79  $(PROG):        $(G_OBJS) $(KWARNDOBJS) $$(MAPFILES)
  79   80          $(LINK.c) $(KWARNDOBJS) $(G_OBJS) -o $@ $(LDLIBS)
  80   81          $(POST_PROCESS)
  81   82  
  82   83  # the client entry points (kwarn_*_warning) are now avail in mech_krb5.so
↓ open down ↓ 50 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX