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

*** 22,31 **** --- 22,32 ---- # Copyright 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # Copyright 2016 Toomas Soome <tsoome@me.com> # Copyright 2016 Nexenta Systems, Inc. + # Copyright 2017 RackTop Systems. # PROG= bootadm SBINLINKS= $(PROG)
*** 43,52 **** --- 44,56 ---- LDLIBS_i386= -lfdisk LDLIBS += -lficl-sys -lmd -lcryptoutil -lnvpair -lgen -ladm -lefi LDLIBS += -lz -lbe -lzfs -lofmt $(LDLIBS_$(MACH)) + # Allow zlib to be taken from outside the proto area. + $(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libz.so + # Writing into string literals is incorrect. We need to match gcc's # behavior, which causes us to take SIGSEGV on such a write. CFLAGS += $(XSTRCONST) CPPFLAGS += -D_FILE_OFFSET_BITS=64 CPPFLAGS += -I$(SRC)/uts/common -I$(SRC)/common -I$(SRC)/common/ficl