Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile
   1    1  #
   2    2  #
   3    3  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   4    4  # Use is subject to license terms.
   5    5  #
   6      -# Copyright (c) 2018, Joyent, Inc.
        6 +# Copyright 2020 Joyent, Inc.
   7    7  
   8    8  ROUTEDPROG=     in.routed
   9    9  ROUTEDOBJS=     common.o if.o input.o main.o output.o parms.o radix.o \
  10   10                  rdisc.o table.o trace.o
  11   11  ROUTEDSRCS=     $(ROUTEDOBJS:.o=.c)
  12   12  RTQUERYPROG=    rtquery
  13   13  RTQUERYOBJS=    common.o rtquery.o
  14   14  RTQUERYSRCS=    $(RTQUERYOBJS:.o=.c)
  15   15  POFILEOBJS=     $(ROUTEDOBJS) $(RTQUERYOBJS)    
  16   16  
↓ open down ↓ 19 lines elided ↑ open up ↑
  36   36  LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
  37   37               -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
  38   38  
  39   39  CPPFLAGS +=     $(_D_XOPEN_EXTN)
  40   40  CFLAGS +=       $(CCVERBOSE)
  41   41  CERRWARN +=     -_gcc=-Wno-parentheses
  42   42  CERRWARN +=     $(CNOWARN_UNINIT)
  43   43  # not linted
  44   44  SMATCH=off
  45   45  
  46      -LDLIBS +=       -lxnet -lmd -lsocket
       46 +LDLIBS +=       -lxnet -lmd
  47   47  CLEAN_FILES +=  $(ROUTEDOBJS) $(RTQUERYOBJS)
  48   48  CLOBBERFILES += $(ROUTEDPROG) $(RTQUERYPROG)
  49   49  #
  50   50  # Message catalog
  51   51  #
  52   52  POFILE=         in.routed.po
  53   53  POFILES=  $(POFILEOBJS:.o=.po)
  54   54  #
  55   55  $(ROUTEDPROG):= LDLIBS += -lkstat
  56   56  lint    :=      LDLIBS += -lkstat
↓ open down ↓ 43 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX