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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libzonecfg/Makefile.com
          +++ new/usr/src/lib/libzonecfg/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) 2010, Oracle and/or its affiliates. All rights reserved.
       23 +# Copyright 2017 RackTop Systems.
  23   24  #
  24   25  
  25   26  LIBRARY=        libzonecfg.a
  26   27  VERS=           .1
  27   28  OBJECTS=        libzonecfg.o getzoneent.o scratchops.o
  28   29  
  29   30  include ../../Makefile.lib
  30   31  
  31   32  LIBS =          $(DYNLIB) $(LINTLIB)
  32   33  LDLIBS +=       -lc -lsocket -lnsl -luuid -lnvpair -lsysevent -lsec -lbrand \
  33   34                  -lpool -lscf -lproc -luutil -lbsm -lsecdb
  34   35  # DYNLIB libraries do not have lint libs and are not linted
  35   36  $(DYNLIB) :=    LDLIBS += -lxml2
  36   37  
       38 +# Allow libxml2 to be taken from outside the proto area.
       39 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libxml2.so
       40 +
  37   41  SRCDIR =        ../common
  38   42  CPPFLAGS +=     -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(SRCDIR) -D_REENTRANT
  39   43  CERRWARN +=     -_gcc=-Wno-uninitialized
  40   44  CERRWARN +=     -_gcc=-Wno-parentheses
  41   45  $(LINTLIB) := SRCS=     $(SRCDIR)/$(LINTSRC)
  42   46  
  43   47  .KEEP_STATE:
  44   48  
  45   49  all:    $(LIBS)
  46   50  
  47   51  lint:   lintcheck
  48   52  
  49   53  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX