From 5801b0f01c3c34499a929ed96164a5a68b470945 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Fri, 17 Jan 2020 09:49:43 -0800 Subject: 12217 add ld assert-deflib and guidance to gate build Reviewed by: Robert Mustacchi Reviewed by: Gergő Mihály Doma Approved by: Dan McDonald MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/lib/libscf/Makefile | 3 --- usr/src/lib/libscf/Makefile.com | 7 ++----- usr/src/lib/libscf/native/Makefile | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-) (limited to 'usr/src/lib/libscf') diff --git a/usr/src/lib/libscf/Makefile b/usr/src/lib/libscf/Makefile index 41ce640a2d..f6f84bfd52 100644 --- a/usr/src/lib/libscf/Makefile +++ b/usr/src/lib/libscf/Makefile @@ -37,7 +37,6 @@ all := TARGET= all clean := TARGET= clean clobber := TARGET= clobber install := TARGET= install -lint := TARGET= lint HDRDIR = inc HDRS = libscf.h libscf_priv.h @@ -55,8 +54,6 @@ XGETFLAGS += -a all clean clobber install: native $(SUBDIRS) -lint: $(SUBDIRS) - $(POFILE): pofile_MSGFILES install_h: $(ROOTHDRS) diff --git a/usr/src/lib/libscf/Makefile.com b/usr/src/lib/libscf/Makefile.com index a534abf962..44e3ac716b 100644 --- a/usr/src/lib/libscf/Makefile.com +++ b/usr/src/lib/libscf/Makefile.com @@ -38,7 +38,7 @@ OBJECTS = \ include ../../Makefile.lib include ../../Makefile.rootfs -LIBS = $(DYNLIB) $(LINTLIB) +LIBS = $(DYNLIB) $(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN) $(NATIVE_BUILD)VERS = @@ -49,7 +49,6 @@ LDLIBS += -luutil -lc -lgen -lnvpair LDLIBS += $(LDLIBS_$(MACH)) SRCDIR = ../common -$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) COMDIR = ../../../common/svc @@ -75,7 +74,7 @@ MY_NATIVE_CPPFLAGS =\ -DNATIVE_BUILD $(DTEXTDOM) \ -I../inc -I$(COMDIR) -I$(LIBUUTIL)/common -I$(ROOTHDRDIR) MY_NATIVE_LDLIBS = -L$(LIBUUTIL)/native -R$(LIBUUTIL)/native -luutil -lc -lgen \ - -lnsl -lnvpair + -lnvpair MY_NATIVE_LDLIBS_i386 = -lsmbios MY_NATIVE_LDLIBS += $(MY_NATIVE_LDLIBS_$(MACH)) @@ -83,6 +82,4 @@ MY_NATIVE_LDLIBS += $(MY_NATIVE_LDLIBS_$(MACH)) all: -lint: lintcheck - include ../../Makefile.targ diff --git a/usr/src/lib/libscf/native/Makefile b/usr/src/lib/libscf/native/Makefile index 003d633014..540a99f15a 100644 --- a/usr/src/lib/libscf/native/Makefile +++ b/usr/src/lib/libscf/native/Makefile @@ -23,8 +23,6 @@ # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # -#ident "%Z%%M% %I% %E% SMI" -# NOT_NATIVE = $(POUND_SIGN) # tell Makefile.com we're native @@ -36,6 +34,7 @@ CFLAGS = $(NATIVE_CFLAGS) CPPFLAGS = $(MY_NATIVE_CPPFLAGS) LDFLAGS = LDLIBS = $(MY_NATIVE_LDLIBS) +NATIVE_LIBS += libsmbios.so libnvpair.so libgen.so libc.so all: libuutil .WAIT $(LIBS) -- cgit v1.2.3