Print this page
8411 Build should warn when linking against libraries outside proto area

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libscf/Makefile.com
          +++ new/usr/src/lib/libscf/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) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
       23 +# Copyright 2017 RackTop Systems.
  23   24  #
  24   25  
  25   26  LIBRARY =       libscf.a
  26   27  VERS =          .1
  27   28  
  28   29  OBJECTS = \
  29   30          error.o                 \
  30   31          lowlevel.o              \
  31   32          midlevel.o              \
  32   33          notify_params.o         \
↓ open down ↓ 2 lines elided ↑ open up ↑
  35   36          scf_type.o
  36   37  
  37   38  include ../../Makefile.lib
  38   39  include ../../Makefile.rootfs
  39   40  
  40   41  LIBS =          $(DYNLIB) $(LINTLIB)
  41   42  
  42   43  $(NOT_NATIVE)NATIVE_BUILD = $(POUND_SIGN)
  43   44  $(NATIVE_BUILD)VERS =
  44   45  $(NATIVE_BUILD)LIBS = $(DYNLIB)
       46 +$(NATIVE_BUILD)$(DYNLIB) := ZASSERTDEFLIB=
  45   47  
  46   48  LDLIBS_i386 += -lsmbios
  47   49  LDLIBS +=       -luutil -lc -lgen -lnsl -lnvpair
  48   50  LDLIBS +=       $(LDLIBS_$(MACH))
  49   51  
  50   52  SRCDIR =        ../common
  51   53  $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  52   54  
  53   55  COMDIR =        ../../../common/svc
  54   56  
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX