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

@@ -8,10 +8,11 @@
 # source.  A copy of the CDDL is also available via the Internet at
 # http://www.illumos.org/license/CDDL.
 #
 
 # Copyright 2015, Richard Lowe.
+# Copyright 2017 RackTop Systems.
 
 include $(SRC)/tools/Makefile.tools
 
 LIBRARY = libmakestate.a
 VERS = .1

@@ -35,6 +36,9 @@
         $(INS.file)
 
 $(ROOTONBLDLIBMACH64)/%: %
         $(INS.file)
 
+# Disable -zassert-deflib.  We want to link against host libraries.
+$(DYNLIB) := ZASSERTDEFLIB=
+
 include $(SRC)/lib/Makefile.targ