Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.sbin/ipadm/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.sbin/ipadm/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 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -#
       25 +# Copyright 2020 Joyent, Inc.
  26   26  
  27   27  PROG =          ipadm
  28   28  ROOTFS_PROG =   $(PROG)
  29   29  LOCALOBJS=      ipadm.o
  30   30  COMMONOBJS=
  31   31  OBJS=           $(LOCALOBJS) $(COMMONOBJS)
  32   32  
  33   33  include ../../../Makefile.cmd
  34   34  include ../../Makefile.cmd-inet
  35   35  
↓ open down ↓ 3 lines elided ↑ open up ↑
  39   39  SRCS=           $(LOCALSRCS) $(COMMONSRCS)
  40   40  
  41   41  CPPFLAGS +=     -I$(CMDINETCOMMONDIR)
  42   42  LDLIBS +=       -lofmt -linetutil -lipadm -lnvpair
  43   43  LINTFLAGS +=    -m
  44   44  
  45   45  ROOTUSRSBINLINKS = $(PROG:%=$(ROOTUSRSBIN)/%)
  46   46  
  47   47  # ipadm uses the ancillary data feature which is available only through
  48   48  # UNIX 98 standards version of Socket interface. This interface is supposed to
  49      -# be accessed by -lxnet. In addition -lsocket is used to capture new
  50      -# not-yet-standard interfaces. Someday -lxnet alone should be enough when IPv6
  51      -# inspired new interfaces are part of standards.
  52      -LDLIBS +=       -lxnet -lsocket
       49 +# be accessed by -lxnet.
       50 +LDLIBS +=       -lxnet
  53   51  
  54   52  # these #defines are required to use UNIX 98 interfaces
  55   53  _D_UNIX98_EXTN= -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
  56   54  
  57   55  $(OBJS)         := CPPFLAGS +=  $(_D_UNIX98_EXTN)
  58   56  
  59   57  LINTFLAGS +=    $(_D_UNIX98_EXTN)
  60   58  
  61   59  $(ROOTCFGDIR)/ipadm.conf := FILEMODE= 644
  62   60  
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX