Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -18,10 +18,11 @@
#
# CDDL HEADER END
#
#
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+# Copyright 2017 RackTop Systems.
#
#
LIBRARY = libshare_autofs.a
VERS = .1
@@ -42,10 +43,13 @@
lintcheck := SRCS = $(LIBSRCS)
LIBS = $(DYNLIB)
LDLIBS += -lshare -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-switch
CERRWARN += -_gcc=-Wno-unused-variable
CERRWARN += -_gcc=-Wno-uninitialized