Print this page
12311 adjust NATIVE_LIBS in SMF makefiles

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/svc/svccfg/Makefile
          +++ new/usr/src/cmd/svc/svccfg/Makefile
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  #
  23   23  # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24      -# Copyright (c) 2018, Joyent, Inc.
       24 +# Copyright 2020 Joyent, Inc.
  25   25  #
  26   26  
  27   27  MYPROG =        svccfg
  28   28  PROG =          $(MYPROG)
  29   29  
  30   30  SRCS  =         svccfg_main.c \
  31   31                  svccfg_engine.c \
  32   32                  svccfg_internal.c \
  33   33                  svccfg_libscf.c \
  34   34                  svccfg_tmpl.c \
↓ open down ↓ 50 lines elided ↑ open up ↑
  85   85  SMATCH=off
  86   86  
  87   87  LFLAGS = -t
  88   88  YFLAGS = -d
  89   89  
  90   90  CLOBBERFILES += svccfg_lex.c svccfg_grammar.c svccfg_grammar.h \
  91   91      $(MYPROG:%=%-native)
  92   92  
  93   93  SVCCFG_EXTRA_LIBS = -lxml2 -lscf -ll -luutil -lumem -lmd5 -lnvpair
  94   94  $(NOT_NATIVE)SVCCFG_EXTRA_LIBS += -ltecla
  95      -NATIVE_LIBS += libxml2.so
       95 +#
       96 +# If no adjunct, then we'll already find /usr/lib via LDLIBS below.
       97 +#
       98 +$(NO_ADJUNCT_PROTO)NATIVE_LIBS += libxml2.so libl.so libumem.so \
       99 +    libmd5.so libnvpair.so libc.so
  96  100  
  97  101  LIBSCF          = $(SRC)/lib/libscf
  98  102  LIBTECLA        = $(SRC)/lib/libtecla           # just for the header
  99  103  LIBUUTIL        = $(SRC)/lib/libuutil
 100  104  
 101  105  lint := LINTFLAGS = -mux
 102  106  lint := SVCCFG_EXTRA_LIBS = -lscf -ll -luutil -lumem -lmd5 -lnvpair
 103  107  
 104  108  LDLIBS += $(SVCCFG_EXTRA_LIBS)
 105  109  
↓ open down ↓ 76 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX