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

*** 20,29 **** --- 20,30 ---- # # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # Copyright (c) 2012 by Delphix. All rights reserved. + # Copyright 2017 RackTop Systems. # LIBRARY = libwanboot.a VERS = .1
*** 59,68 **** --- 60,74 ---- include ../../Makefile.lib LIBS += $(LINTLIB) LDLIBS += -lnvpair -lresolv -lnsl -lsocket -ldevinfo -ldhcputil \ -linetutil -lc -lcrypto -lssl + + # Allow libcrypto and libssl to be taken from outside the proto area. + $(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libcrypto.so + $(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libssl.so + CPPFLAGS = -I$(SRC)/common/net/wanboot/crypt $(CPPFLAGS.master) CERRWARN += -_gcc=-Wno-switch CERRWARN += -_gcc=-Wno-parentheses CERRWARN += -_gcc=-Wno-unused-value CERRWARN += -_gcc=-Wno-uninitialized