Print this page
12312 fix unused lib dependencies

@@ -20,11 +20,11 @@
 #
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2020 Joyent, Inc.
 
 
 FSTYPE    =     nfs
 TYPEPROG  =     nfsmapid
 TESTPROG  =     nfsmapid_test

@@ -31,11 +31,11 @@
 ATTMK     =     $(TYPEPROG)
 
 include         ../../Makefile.fstype
 
 LDLIBS   +=     -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
-LDLIBS   +=     -lnsl -lmapid -ldtrace -lidmap
+$(TYPEPROG) := LDLIBS += -lnsl -lmapid -ldtrace -lidmap
 COMMON    =     nfs_resolve.o
 SRCS      =     nfsmapid.c ../lib/nfs_resolve.c nfsmapid_server.c
 DSRC      =     nfsmapid_dt.d
 DOBJ      =     $(DSRC:%.d=%.o)
 OBJS      =     nfsmapid.o nfsmapid_server.o $(COMMON)