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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mandoc/Makefile
          +++ new/usr/src/cmd/mandoc/Makefile
↓ open down ↓ 4 lines elided ↑ open up ↑
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13   13  # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  14   14  # Copyright 2015 Nexenta Systems, Inc.  All rights reserved.
       15 +# Copyright 2017 RackTop Systems.
  15   16  #
  16   17  
  17   18  include         $(SRC)/cmd/Makefile.cmd
  18   19  include         $(SRC)/cmd/mandoc/Makefile.common
  19   20  
  20   21  .KEEP_STATE:
  21   22  
  22   23  all:            $(PROG)
  23   24  
  24   25  $(PROG):        $(OBJS)
  25   26                  $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  26   27                  $(POST_PROCESS)
  27   28  
  28   29  clean:
  29   30                  $(RM) $(OBJS)
  30   31  
  31   32  install:        all $(ROOTPROG)
  32   33  
       34 +# Allow zlib to be taken from outside the proto area.
       35 +$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libz.so
       36 +
  33   37  include         $(SRC)/cmd/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX