Print this page
8411 Build should warn when linking against libraries outside proto area

@@ -22,10 +22,12 @@
 
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2017 RackTop Systems.
+#
 
 include ../../../Makefile.cmd
 
 SHAREMGR64= $(POUND_SIGN)
 $(SHAREMGR64)SHAREMGRNO64= $(POUND_SIGN)

@@ -41,10 +43,13 @@
 CPPFLAGS += $(MYCPPFLAGS)
 LDLIBS += -lshare -lscf -lsecdb -lumem
 all install := LDLIBS += -lxml2
 LINTFLAGS       += -u
 
+# Allow libxml2 to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libxml2.so
+
 CERRWARN        += -_gcc=-Wno-uninitialized
 
 POFILES = $(SRCS:.c=.po)
 POFILE  = sharemgr.po