Print this page
10080 smatch Makefile changes for usr/src/cmd

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/savecore/Makefile.com
          +++ new/usr/src/cmd/savecore/Makefile.com
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  #
       24 +# Copyright (c) 2018, Joyent, Inc.
  24   25  
  25   26  PROG= savecore
  26   27  SRCS= ../savecore.c ../../../uts/common/os/compress.c
  27   28  OBJS= savecore.o compress.o
  28   29  
  29   30  include ../../Makefile.cmd
  30   31  
  31   32  CSTD = $(CSTD_GNU99)
  32   33  
  33   34  CFLAGS += $(CCVERBOSE)
  34   35  CFLAGS64 += $(CCVERBOSE)
  35   36  CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -DBZ_NO_STDIO -I$(SRC)/uts/common
  36   37  
       38 +# not linted
       39 +SMATCH=off
       40 +
  37   41  #
  38   42  # savecore is compiled with bits from $(SRC)/common/bzip2 and some function
  39   43  # symbols there are defined as weak; if you leave them out of
  40   44  # savecore.c it will compile, but trying to call that function
  41   45  # will jump to 0.  So we use -ztext to avoid that.
  42   46  #
  43   47  LDFLAGS += -ztext
  44   48  
  45   49  BZIP2OBJS =     bz2blocksort.o  \
  46   50                  bz2compress.o   \
↓ open down ↓ 47 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX