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

@@ -20,10 +20,12 @@
 #
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2017 RackTop Systems.
+#
 # Makefile for policy testing code
 #
 
 PROG =  kmfcfg
 

@@ -50,10 +52,13 @@
 CPPFLAGS        += -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
                 -I$(KMFDIR)/include -I.
 LDLIBS          += -L$(ROOT)/usr/lib -lkmf -lcryptoutil
 XMLLIB          = -lxml2
 
+# Allow libxml2 to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libxml2.so
+
 .KEEP_STATE:
 
 XMLDIR=         $(ROOT)/etc/security
 DTDDIR=         $(ROOT)/usr/share/lib/xml/dtd
 ROOTDTDS=       $(DTDDIR)/kmfpolicy.dtd