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

@@ -23,10 +23,12 @@
 
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2017 RackTop Systems.
+#
 # cmd/sendmail/src/Makefile
 #
 
 PROG=   sendmail
 

@@ -46,10 +48,14 @@
 
 LDLIBS +=       ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
                 -lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \
                 -lssl -lcrypto -lsasl
 
+# Allow libssl and libcrypto to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libssl.so
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
+
 INCPATH=        -I. -I../include -I../db
 
 ENVDEF=         -DNETINET6 -DTCPWRAPPERS -DSTARTTLS -DSASL=20115
 SUNENVDEF=      -DSUN_EXTENSIONS -DVENDOR_DEFAULT=VENDOR_SUN \
                 -DSUN_INIT_DOMAIN -DSUN_SIMPLIFIED_LDAP -D_FFR_LOCAL_DAEMON \