Print this page
8411 Build should warn when linking against libraries outside proto area
@@ -19,10 +19,12 @@
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
+# Copyright 2017 RackTop Systems.
+#
# Makefile for KMF Plugins
#
LIBRARY= kmf_openssl.a
VERS= .1
@@ -41,10 +43,13 @@
OPENSSLLIBS64= $(BERLIB64) -lcrypto -lcryptoutil -lc
LINTSSLLIBS = $(BERLIB) -lcrypto -lcryptoutil -lc
LINTSSLLIBS64 = $(BERLIB64) -lcrypto -lcryptoutil -lc
+# Allow libcrypto to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
+
# Because of varying openssl implementations, we need to not have lint
# complain if we're being liberal in our suppression directives.
LINTFLAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
LINTFLAGS64 += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED