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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/isns/isnsd/Makefile
          +++ new/usr/src/cmd/isns/isnsd/Makefile
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  #
  22   22  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  
  26   26  #
  27   27  # Copyright (c) 2012 by Delphix. All rights reserved.
       28 +# Copyright 2017 RackTop Systems.
  28   29  #
  29   30  
  30   31  PROG = isns
  31   32  
  32   33  DSRC = isns_provider.d
  33   34  DTRACE_HEADER = $(DSRC:%.d=%.h)
  34   35  
  35   36  COBJS   = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
  36   37  COBJS   += dump.o msgq.o server.o config.o esi.o obj.o utils.o dd.o func.o
  37   38  COBJS   += pdu.o door.o htable.o
↓ open down ↓ 25 lines elided ↑ open up ↑
  63   64  CERRWARN += -_gcc=-Wno-uninitialized
  64   65  CERRWARN += -_gcc=-Wno-implicit-function-declaration
  65   66  
  66   67  CLOBBERFILES += $(DTRACE_HEADER)
  67   68  
  68   69  obj.o := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
  69   70  obj.o := CERRWARN += -erroff=E_IMPLICIT_DECL_FUNC_RETURN_INT
  70   71  
  71   72  LDLIBS          += -lsecdb -lsocket -lnsl -lscf -lxml2
  72   73  
       74 +# Allow libxml2 to be taken from outside the proto area.
       75 +$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libxml2.so
       76 +
  73   77  .KEEP_STATE:
  74   78  
  75   79  all:    $(PROG)
  76   80  
  77   81  $(PROG): $(OBJS)
  78   82          $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  79   83          $(POST_PROCESS)
  80   84  
  81   85  %.h: %.d
  82   86          $(DTRACE) -h -s $< -o $@
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX