Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -18,10 +18,11 @@
#
# CDDL HEADER END
#
#
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
#
LIBRARY = libtopo.a
VERS = .1
@@ -87,10 +88,13 @@
$(DYNLIB) := LDLIBS += \
-lnvpair -lelf -lumem -lxml2 -lkstat -luuid -ldevinfo \
-lsmbios -lc -ldevid -lipmi -lscf
+# Allow libxml2 to be taken from the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libxml2.so
+
$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
$(LINTLIB) := LINTFLAGS = -nsvx
$(LINTLIB) := LINTFLAGS64 = -nsvx -m64
$(LINTLIB) := LDLIBS += -lnvpair -lumem -lc