Print this page
12312 fix unused lib dependencies

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 #
 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
 # Copyright (c) 2016 by Delphix. All rights reserved.
+# Copyright 2020 Joyent, Inc.
 #
 
 LIBRARY =       s10_brand.a
 VERS =          .1
 COBJS =         s10_brand.o s10_deleted.o s10_signal.o

@@ -80,11 +81,11 @@
 # Needed to handle zfs include files
 CSTD=   $(CSTD_GNU99)
 C99LMODE=       -Xc99=%all
 DYNFLAGS +=     $(DYNFLAGS_$(CLASS))
 DYNFLAGS +=     $(BLOCAL) $(ZNOVERSION) -Wl,-e_start
-LDLIBS +=       -lc -lmapmalloc
+LDLIBS +=       -lmapmalloc -lc
 LINTFLAGS +=    -erroff=E_STATIC_UNUSED
 LINTFLAGS64 +=  -erroff=E_STATIC_UNUSED
 
 CERRWARN +=     $(CNOWARN_UNINIT)
 

@@ -92,8 +93,6 @@
 
 .KEEP_STATE:
 
 all: $(LIBS)
 
-lint: lintcheck
-
 include $(SRC)/lib/Makefile.targ