Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/sn1/sn1_brand/Makefile.com
          +++ new/usr/src/lib/brand/sn1/sn1_brand/Makefile.com
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
       23 +# Copyright 2020 Joyent, Inc.
  23   24  #
  24   25  
  25   26  LIBRARY =       sn1_brand.a
  26   27  VERS =          .1
  27   28  COBJS =         sn1_brand.o
  28   29  ASOBJS =        crt.o handler.o runexe.o brand_util.o
  29   30  OBJECTS =       $(COBJS)
  30   31  
  31   32  include ../../Makefile.sn1
  32   33  include $(SRC)/lib/Makefile.lib
↓ open down ↓ 27 lines elided ↑ open up ↑
  60   61  # looks for all libraries in the brands "native" directory (for both
  61   62  # regular and suid binaries).
  62   63  #
  63   64  NATIVE_DIR =    /.SUNWnative
  64   65  CPPFLAGS +=     -D_REENTRANT -U_ASM \
  65   66                  -I. -I$(BRAND_SHARED)/brand/sys -I$(UTSBASE)/common/brand/sn1
  66   67  CFLAGS +=       $(CCVERBOSE)
  67   68  DYNFLAGS +=     $(DYNFLAGS_$(CLASS))
  68   69  DYNFLAGS +=     $(BLOCAL) $(ZNOVERSION) -Wl,-e_start
  69   70  #DYNFLAGS +=    -R$(NATIVE_DIR)/lib -R$(NATIVE_DIR)/usr/lib
  70      -LDLIBS +=       -lc -lmapmalloc
       71 +LDLIBS +=       -lmapmalloc -lc
  71   72  
       73 +ZGUIDANCE =     -zguidance=nounused
  72   74  $(LIBS):= PICS += $(SHAREDOBJS)
  73   75  
  74   76  .KEEP_STATE:
  75   77  
  76   78  all: $(LIBS)
  77   79  
  78   80  lint: lintcheck
  79   81  
  80   82  include $(SRC)/lib/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX