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

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 #
 #
 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
 #
 
 LIBRARY =       libshare_nfs.a
 VERS =          .1
 NFSLIB_DIR      = $(SRC)/cmd/fs.d/nfs/lib

@@ -42,10 +43,13 @@
 lintcheck := SRCS = $(LIBSRCS)
 
 LIBS =          $(DYNLIB)
 LDLIBS +=       -lshare -lnsl -lscf -lumem -lc -lxml2
 
+# Allow libxml2 to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libxml2.so
+
 #add nfs/lib directory as part of the include path
 CFLAGS +=       $(CCVERBOSE)
 CERRWARN +=     -_gcc=-Wno-parentheses
 CERRWARN +=     -_gcc=-Wno-switch
 CERRWARN +=     -_gcc=-Wno-unused-variable