Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/brand/solaris10/s10_brand/Makefile.com
          +++ new/usr/src/lib/brand/solaris10/s10_brand/Makefile.com
↓ open down ↓ 13 lines elided ↑ open up ↑
  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) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright (c) 2016 by Delphix. All rights reserved.
       24 +# Copyright 2020 Joyent, Inc.
  24   25  #
  25   26  
  26   27  LIBRARY =       s10_brand.a
  27   28  VERS =          .1
  28   29  COBJS =         s10_brand.o s10_deleted.o s10_signal.o
  29   30  ASOBJS =        crt.o handler.o runexe.o brand_util.o
  30   31  OBJECTS =       $(COBJS)
  31   32  
  32   33  include ../../Makefile.s10
  33   34  include $(SRC)/lib/Makefile.lib
↓ open down ↓ 41 lines elided ↑ open up ↑
  75   76  CPPFLAGS +=     -D_REENTRANT -U_ASM \
  76   77                  -I. -I$(BRAND_SHARED)/brand/sys -I../sys \
  77   78                  -I$(UTSBASE)/common/brand/solaris10 \
  78   79                  -I$(SRC)/uts/common/fs/zfs
  79   80  CFLAGS +=       $(CCVERBOSE)
  80   81  # Needed to handle zfs include files
  81   82  CSTD=   $(CSTD_GNU99)
  82   83  C99LMODE=       -Xc99=%all
  83   84  DYNFLAGS +=     $(DYNFLAGS_$(CLASS))
  84   85  DYNFLAGS +=     $(BLOCAL) $(ZNOVERSION) -Wl,-e_start
  85      -LDLIBS +=       -lc -lmapmalloc
       86 +LDLIBS +=       -lmapmalloc -lc
  86   87  LINTFLAGS +=    -erroff=E_STATIC_UNUSED
  87   88  LINTFLAGS64 +=  -erroff=E_STATIC_UNUSED
  88   89  
  89   90  CERRWARN +=     $(CNOWARN_UNINIT)
  90   91  
  91   92  $(LIBS):= PICS += $(SHAREDOBJS)
  92   93  
  93   94  .KEEP_STATE:
  94   95  
  95   96  all: $(LIBS)
  96   97  
  97      -lint: lintcheck
  98      -
  99   98  include $(SRC)/lib/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX