Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -20,10 +20,12 @@
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright 2017 RackTop Systems.
+#
LIBRARY = libpool.a
VERS = .1
OBJECTS = \
@@ -39,10 +41,13 @@
# Adding -lxml2 to LDLIBS would cause lint to complain as there is no .ln file
# for libxml2, so add it to DYNFLAGS
DYNFLAGS += -lxml2
+# Allow libxml2 to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libxml2.so
+
LIBS = $(DYNLIB) $(LINTLIB)
LDLIBS += -lscf -lnvpair -lexacct -lc
SRCDIR = ../common
$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)