Print this page
12312 fix unused lib dependencies

@@ -19,11 +19,11 @@
 # CDDL HEADER END
 #
 
 #
 # Copyright (c) 1995, 2010, Oracle and/or its affiliates. All rights reserved.
-# Copyright (c) 2018, Joyent, Inc.
+# Copyright 2020 Joyent, Inc.
 # Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
 #
 
 LIBRARY=        ldprof.a
 VERS=           .1

@@ -48,10 +48,12 @@
                 $(CPPFLAGS.master) -I$(ELFCAP)
 CFLAGS +=       $(C_PICFLAGS)
 
 SMOFF += indenting
 
+ZGUIDANCE =     -zguidance=nounused
+
 LDLIBS +=       $(ZRECORD) -lmapmalloc -lc $(DLLIB)
 
 BLTDEFS=        msg.h
 BLTDATA=        msg.c
 BLTMESG=        $(SGSMSGDIR)/ldprof