Print this page
patch fix-lint

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdisasm/Makefile.com
          +++ new/usr/src/lib/libdisasm/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 2007 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
       25 +# Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  25   26  #
  26   27  
  27   28  #
  28   29  # The build process for libdisasm is sightly different from that used by other
  29   30  # libraries, because libdisasm must be built in two flavors - as a standalone
  30   31  # for use by kmdb and as a normal library.  We use $(CURTYPE) to indicate the
  31   32  # current flavor being built.
  32   33  #
  33   34  
  34   35  LIBRARY=        libdisasm.a
↓ open down ↓ 78 lines elided ↑ open up ↑
 113  114  CERRWARN +=     -_gcc=-Wno-parentheses
 114  115  CERRWARN +=     -_gcc=-Wno-uninitialized
 115  116  
 116  117  # We want the thread-specific errno in the library, but we don't want it in
 117  118  # the standalone.  $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS),
 118  119  # in order to enable this feature.  Conveniently, -D_REENTRANT does the same
 119  120  # thing.  As such, we null out $(DTS_ERRNO) to ensure that the standalone
 120  121  # doesn't get it.
 121  122  DTS_ERRNO=
 122  123  
 123      -# We need to rename some standard functions so we can easily implement them 
 124      -# in consumers.
 125      -STAND_RENAMED_FUNCS= \
 126      -        snprintf
 127      -
 128      -CPPFLAGS_standalone = -DDIS_STANDALONE $(STAND_RENAMED_FUNCS:%=-D%=mdb_%) \
 129      -        -Dvsnprintf=mdb_iob_vsnprintf -I$(SRC)/cmd/mdb/common
      124 +CPPFLAGS_standalone = -DDIS_STANDALONE -I$(SRC)/cmd/mdb/common
 130  125  CPPFLAGS_library = -D_REENTRANT
 131  126  CPPFLAGS +=     -I$(COMDIR) $(CPPFLAGS_$(CURTYPE))
 132  127  
 133  128  # For the x86 disassembler we have to include sources from usr/src/common
 134  129  CPPFLAGS += -I$(SRC)/common/dis/i386 -DDIS_TEXT
 135  130  
 136  131  CFLAGS_standalone = $(STAND_FLAGS_32)
 137  132  CFLAGS_common =
 138  133  CFLAGS += $(CFLAGS_$(CURTYPE)) $(CFLAGS_common)
 139  134  
 140  135  CFLAGS64_standalone = $(STAND_FLAGS_64)
 141  136  CFLAGS64 += $(CCVERBOSE) $(CFLAGS64_$(CURTYPE)) $(CFLAGS64_common)
 142  137  
 143  138  DYNFLAGS +=     $(ZINTERPOSE)
 144  139  
 145  140  .KEEP_STATE:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX