Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -21,10 +21,12 @@
#
#
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright 2017 RackTop Systems.
+#
PROG= availdevs
include ../Makefile.cmd
@@ -38,10 +40,13 @@
#
LDLIBS += -lzfs_jni -lnvpair -lzfs
all install := LDLIBS += -lxml2
LINTFLAGS += -xerroff=E_NAME_USED_NOT_DEF2
+# Allow libxml2 to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libxml2.so
+
CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT
$(NOT_RELEASE_BUILD) CPPFLAGS += -DDEBUG
.KEEP_STATE: