Print this page
12312 fix unused lib dependencies

@@ -21,11 +21,11 @@
 
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2020 Joyent, Inc.
 
 TESTPROG = kwarndtest 
 
 PROG= ktkt_warnd
 MANIFEST=       ktkt_warn.xml

@@ -65,13 +65,14 @@
                  -I$(SRC)/lib/gss_mechs/mech_krb5/include \
                  -I$(SRC)/uts/common/gssapi/mechs/krb5/include
 
 ktkt_warnd :=   MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
 ktkt_warnd :=   LDFLAGS +=      $(KRUNPATH) $(MAPFILES:%=-M%)
+ktkt_warnd :=   LDLIBS +=       -lnsl
 
 LDFLAGS +=      $(KRUNPATH)
-LDLIBS +=       $(KMECHLIB) -lnsl
+LDLIBS +=       $(KMECHLIB)
 
 .KEEP_STATE:
 
 all: $(PROG) $(TESTPROG)