Print this page
don't pass in lint libraries which no longer exist
gag lint errors that stem from lint libraries that the omnios build system does not build
@@ -36,11 +36,14 @@
.KEEP_STATE:
LDLIBS_i386= -lfdisk
-LDLIBS += -lnvpair -lgen -ladm -lefi -lscf -lz -lbe -lzfs $(LDLIBS_$(MACH))
+LDLIBS += -lnvpair -lgen -ladm -lefi -lscf -lbe -lzfs $(LDLIBS_$(MACH))
+
+# There's no lint library for zlib, so only include this when building
+$(PROG) := LDLIBS += -lz
# 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
@@ -51,10 +54,11 @@
CERRWARN += -_gcc=-Wno-unused-label
LINTFLAGS += -erroff=E_INCONS_ARG_DECL2
LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
+LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
all: $(PROG)
$(PROG): $(OBJS) bootadm.h
$(LINK.c) -o $@ $(OBJS) $(LDLIBS)