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

@@ -19,18 +19,23 @@
 # CDDL HEADER END
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2017 RackTop Systems.
+#
 
 include ../Makefile.com
 
 PROG =          wanboot-cgi
 LDLIBS +=       -lgen -lnsl -lwanbootutil -lnvpair -lwanboot -lcrypto
 CPPFLAGS +=     -I$(CMNCRYPTDIR)
 LINTFLAGS +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
 
+# Allow libcrypto to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
+
 all:            $(PROG)
 
 install:        all $(ROOTCMD)
 
 clean: