Print this page
12311 adjust NATIVE_LIBS in SMF makefiles

@@ -22,11 +22,11 @@
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # Copyright 2015 RackTop Systems.
 #
-# Copyright 2019 Joyent, Inc.
+# Copyright 2020 Joyent, Inc.
 #
 
 MYPROG = svc.configd
 MYOBJS = \
         backend.o \

@@ -76,12 +76,14 @@
 
 SCRIPTFILE      = restore_repository
 ROOTSCRIPTFILE  = $(ROOTCMDDIR)/$(SCRIPTFILE)
 
 #
-# Native variant (used in ../seed)
+# Native variant (used in ../seed). We only need to set NATIVE_LIBS if
+# $(ADJUNCT_PROTO) is pointing outside of /usr/lib.
 #
+$(NO_ADJUNCT_PROTO)NATIVE_LIBS += libumem.so libc.so
 $(NATIVE_BUILD)CC =     $(NATIVECC)
 $(NATIVE_BUILD)LD =     $(NATIVELD)
 $(NATIVE_BUILD)CFLAGS = $(NATIVE_CFLAGS)
 $(NATIVE_BUILD)CPPFLAGS = $(MYCPPFLAGS) -I$(LIBUUTIL)/common -I$(LIBSCF)/inc
 $(NATIVE_BUILD)CPPFLAGS += -DNATIVE_BUILD