Print this page
10079 smatch Makefile changes for usr/src/lib

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libumem/Makefile.com
          +++ new/usr/src/lib/libumem/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 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# Copyright (c) 2012, Joyent, Inc.  All rights reserved.
       25 +# Copyright (c) 2018, Joyent, Inc.
  26   26  #
  27   27  
  28   28  #
  29   29  # The build process for libumem is sightly different from that used by other
  30   30  # libraries, because libumem must be built in two flavors - as a standalone
  31   31  # for use by kmdb and as a normal library.  We use $(CURTYPE) to indicate the
  32   32  # current flavor being built.
  33   33  #
  34   34  
  35   35  LIBRARY = libumem.a
↓ open down ↓ 87 lines elided ↑ open up ↑
 123  123          -M$(MAPFILE_SUPPLEMENTAL) -dy -r
 124  124  LDFLAGS = $(LDFLAGS_$(CURTYPE))
 125  125  
 126  126  ASFLAGS_standalone = -DUMEM_STANDALONE
 127  127  ASFLAGS_library =
 128  128  ASFLAGS += -P $(ASFLAGS_$(CURTYPE)) -D_ASM
 129  129  
 130  130  CERRWARN += -_gcc=-Wno-switch
 131  131  CERRWARN += -_gcc=-Wno-uninitialized
 132  132  
      133 +SMOFF += deref_check
      134 +
 133  135  $(LINTLIB) := SRCS = ../common/$(LINTSRC)
 134  136  
 135  137  # We want the thread-specific errno in the library, but we don't want it in
 136  138  # the standalone.  $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS),
 137  139  # in order to enable this feature.  Conveniently, -D_REENTRANT does the same
 138  140  # thing.  As such, we null out $(DTS_ERRNO) to ensure that the standalone
 139  141  # doesn't get it.
 140  142  DTS_ERRNO=
 141  143  
 142  144  # We need to rename some standard functions so we can easily implement them
↓ open down ↓ 30 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX