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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/policykit/Makefile.com
          +++ new/usr/src/lib/policykit/Makefile.com
↓ open down ↓ 14 lines elided ↑ open up ↑
  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 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright 2017 RackTop Systems.
       26 +#
  25   27  
  26   28  include $(SRC)/lib/Makefile.lib
  27   29  include $(SRC)/lib/policykit/Makefile.policykit
  28   30  
  29   31  CPPFLAGS =      $(POLICYKIT_DBUS_CPPFLAGS) $(POLICYKIT_GLIB_CPPFLAGS) $(CPPFLAGS.master)
  30   32  
  31   33  CERRWARN +=     -_gcc=-Wno-unused-variable
  32   34  
  33   35  C99MODE =       $(C99_ENABLE)
  34   36  
       37 +# Allow libdbus and libglib to be taken from outside the proto area.
       38 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libdbus-1.so
       39 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libglib-2.0.so
       40 +
  35   41  ROOTLIBPCDIR =  $(ROOT)/usr/lib/pkgconfig
  36   42  ROOTLIBPC =     $(LIBPCSRC:%=$(ROOTLIBPCDIR)/%)
  37   43  
  38   44  CLOBBERFILES += $(LIBPCSRC)
  39   45  
  40   46  #
  41   47  # Ensure `all' is the default target.
  42   48  #
  43   49  all:
  44   50  
  45   51  $(ROOTLIBPCDIR):
  46   52          $(INS.dir)
  47   53  
  48   54  $(ROOTLIBPC): $(ROOTLIBPCDIR) $(LIBPCSRC)
  49   55          $(INS.file) $(LIBPCSRC)
  50   56  
  51   57  $(LIBPCSRC): ../common/$(LIBPCSRC).in
  52   58          $(SED)  -e "s@__VERSION__@$(POLICYKIT_VERSION)@" \
  53   59                   < ../common/$(LIBPCSRC).in > $(LIBPCSRC)
  54   60  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX