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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshare/smb/Makefile.com
          +++ new/usr/src/lib/libshare/smb/Makefile.com
↓ open down ↓ 15 lines elided ↑ open up ↑
  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 2010 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25   25  # Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       26 +# Copyright 2017 RackTop Systems.
  26   27  #
  27   28  
  28   29  LIBRARY =       libshare_smb.a
  29   30  VERS =          .1
  30   31  SMBMLSVC_DIR    = $(SRC)/lib/smbsrv/libmlsvc/common
  31   32  SMBBASE_DIR     = $(SRC)/lib/smbsrv/libsmb/common
  32   33  SMBCOMMON_DIR   = $(SRC)/common/smbsrv
  33   34  
  34   35  LIBOBJS =       libshare_smb.o smb_share_doorclnt.o
  35   36  SMBCOMMON_OBJ = smb_door_legacy.o
↓ open down ↓ 4 lines elided ↑ open up ↑
  40   41  
  41   42  ROOTLIBDIR =    $(ROOT)/usr/lib/fs/smb
  42   43  ROOTLIBDIR64 =  $(ROOT)/usr/lib/fs/smb/$(MACH64)
  43   44  
  44   45  LIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
  45   46  lintcheck := SRCS = $(LIBSRCS)
  46   47  
  47   48  LIBS =          $(DYNLIB)
  48   49  LDLIBS +=       -lshare -lscf -luuid -ldlpi -lnsl -lnvpair -lxml2 -lumem -lc
  49   50  
       51 +# Allow libxml2 to be taken from outside the proto area.
       52 +$(ADJUNCT_PROTO_NOT_SET)DYNFLAGS += $(ZASSERTDEFLIB)=libxml2.so
       53 +
  50   54  CFLAGS +=       $(CCVERBOSE)
  51   55  CERRWARN +=     -_gcc=-Wno-char-subscripts
  52   56  CERRWARN +=     -_gcc=-Wno-switch
  53   57  CPPFLAGS +=     -D_REENTRANT -I$(ADJUNCT_PROTO)/usr/include/libxml2 \
  54   58                  -I$(SRCDIR)/../common
  55   59  $(ENABLE_SMB_PRINTING) CPPFLAGS += -DHAVE_CUPS
  56   60  
  57   61  .KEEP_STATE:
  58   62  
  59   63  all: $(LIBS)
↓ open down ↓ 22 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX