Print this page
12312 fix unused lib dependencies

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fwflash/plugins/transport/Makefile.targ
          +++ new/usr/src/cmd/fwflash/plugins/transport/Makefile.targ
↓ 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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
  24      -# cmd/fwflash/plugins/transport
       24 +# Copyright 2020 Joyent, Inc.
  25   25  #
  26   26  include $(SRC)/lib/Makefile.lib
  27   27  
  28   28  SES_LIB=        ses.so
  29   29  TAVOR_LIB=      tavor.so
  30   30  HERMON_LIB=     hermon.so
  31   31  SD_LIB=         sd.so
  32   32  
  33   33  PLUGINS=        $(SES_LIB) $(TAVOR_LIB) $(HERMON_LIB) $(SD_LIB)
  34   34  
↓ open down ↓ 6 lines elided ↑ open up ↑
  41   41  POFILE= fwflash_transport_identify_ses.po
  42   42  SRCDIR= ../common
  43   43  
  44   44  include $(SRC)/cmd/fwflash/Makefile.com
  45   45  
  46   46  CLEANFILES=     $(PLUGINS) $(POFILES) $(POFILE) $(LINTFILE) $(SLINKS) 
  47   47  
  48   48  LIBS= $(DYNLIB)
  49   49  CFLAGS += $(C_PICFLAGS) 
  50   50  ROOTLIBDIR= $(ROOTUSRLIBFWFLASHIDF)
  51      -LDLIBS          += -ldevinfo -lc
       51 +LDLIBS          += -ldevinfo
  52   52  MAPFILES= ../common/mapfile-vers
  53   53  FILEMODE= 0755
  54   54  
  55   55  $(SES_LIB):=    PICS= pics/$(SES_LIB:%.so=%.o)
  56   56  $(TAVOR_LIB):=  PICS= pics/$(TAVOR_LIB:%.so=%.o)
  57   57  $(HERMON_LIB):= PICS= pics/$(HERMON_LIB:%.so=%.o)
  58   58  $(SD_LIB):=     PICS= pics/$(SD_LIB:%.so=%.o)
  59   59  
  60   60  $(SES_LIB):=    SONAME = $(SES_LIB)
  61   61  $(TAVOR_LIB):=  SONAME = $(TAVOR_LIB)
  62   62  $(HERMON_LIB):= SONAME = $(HERMON_LIB)
  63   63  $(SD_LIB):=     SONAME = $(SD_LIB)
  64   64  
  65   65  $(HERMON_LIB):= MAPFILES += ../common/mapfile-vers-hermon
  66   66  $(SD_LIB):=     MAPFILES += ../common/mapfile-vers-plus
  67   67  
  68      -$(SES_LIB):=    LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lses -lnvpair
  69      -$(SD_LIB):=     LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lumem
       68 +$(HERMON_LIB):= LDLIBS += -lc
       69 +$(TAVOR_LIB):=  LDLIBS += -lc
       70 +$(SES_LIB):=    LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lses -lnvpair -lc
       71 +$(SD_LIB):=     LDLIBS += -L$(ROOT)/usr/lib/scsi -lscsi -lumem -lc
  70   72  
  71   73  $(SES_LIB):=    DYNFLAGS += -R/usr/lib/scsi 
  72   74  $(SD_LIB):=     DYNFLAGS += -R/usr/lib/scsi 
  73   75  
  74   76  .KEEP STATE:
  75   77  
  76   78  $(ROOTUSRLIBFWFLASHIDF)/$(SLINKS) : $(ROOTUSRLIBFWFLASHIDF)/$(SES_LIB)
  77   79          @$(RM) $@
  78   80          $(SYMLINK) $(SES_LIB) $@
  79   81  
↓ open down ↓ 12 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX