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

@@ -19,10 +19,12 @@
 # CDDL HEADER END
 #
 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2017 RackTop Systems.
+#
 
 PROG =          wpad
 MANIFEST =      wpa.xml
 OBJS =          wpa_supplicant.o wpa.o wpa_enc.o eloop.o \
                 driver_wifi.o l2_packet.o

@@ -35,10 +37,13 @@
 LDLIBS    +=    -ldladm -ldlpi
 all install := LDLIBS += -lcrypto
 
 LINTFLAGS +=    -u
 
+# Allow libcrypto to be taken from outside the proto area.
+$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libcrypto.so
+
 .KEEP_STATE:
 
 all:            $(PROG)
 
 $(PROG):        $(OBJS)