Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
          +++ new/usr/src/cmd/fs.d/nfs/nfsmapid/Makefile
↓ 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 (c) 2018, Joyent, Inc.
       25 +# Copyright 2020 Joyent, Inc.
  26   26  
  27   27  
  28   28  FSTYPE    =     nfs
  29   29  TYPEPROG  =     nfsmapid
  30   30  TESTPROG  =     nfsmapid_test
  31   31  ATTMK     =     $(TYPEPROG)
  32   32  
  33   33  include         ../../Makefile.fstype
  34   34  
  35   35  LDLIBS   +=     -L$(ROOT)/usr/lib/nfs -R/usr/lib/nfs
  36      -LDLIBS   +=     -lnsl -lmapid -ldtrace -lidmap
       36 +$(TYPEPROG) := LDLIBS += -lnsl -lmapid -ldtrace -lidmap
  37   37  COMMON    =     nfs_resolve.o
  38   38  SRCS      =     nfsmapid.c ../lib/nfs_resolve.c nfsmapid_server.c
  39   39  DSRC      =     nfsmapid_dt.d
  40   40  DOBJ      =     $(DSRC:%.d=%.o)
  41   41  OBJS      =     nfsmapid.o nfsmapid_server.o $(COMMON)
  42   42  CPPFLAGS +=     -I../lib -D_POSIX_PTHREAD_SEMANTICS
  43   43  
  44   44  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  45   45  CERRWARN +=     -_gcc=-Wno-unused-variable
  46   46  CERRWARN +=     -_gcc=-Wno-parentheses
↓ open down ↓ 37 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX