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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/latencytop/Makefile.com
          +++ new/usr/src/cmd/latencytop/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 (c) 2008-2009, Intel Corporation.
  23   23  # All Rights Reserved.
  24   24  #
       25 +# Copyright 2017 RackTop Systems.
       26 +#
  25   27  
  26   28  PROG = latencytop
  27   29  OBJS = latencytop.o display.o dwrapper.o klog.o stat.o table.o util.o
  28   30  SRCS = $(OBJS:%.o=../common/%.c)
  29   31  
  30   32  include ../../Makefile.cmd
  31   33  
  32   34  CFLAGS += $(CCVERBOSE)
  33   35  CFLAGS64 += $(CCVERBOSE)
  34   36  
  35   37  CERRWARN += -_gcc=-Wno-uninitialized
  36   38  
  37   39  CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
  38   40          -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
  39   41  C99MODE = $(C99_ENABLE)
  40   42  LDLIBS += -lcurses -ldtrace
  41   43  all install     := LDLIBS += -lglib-2.0
  42   44  
       45 +# Allow libglib to be taken from outside the proto area.
       46 +$(ADJUNCT_PROTO_NOT_SET)LDFLAGS += $(ZASSERTDEFLIB)=libglib-2.0.so
       47 +
  43   48  LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  44   49  LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  45   50  LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  46   51  LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
  47   52  LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  48   53  LINTFLAGS64 += -erroff=E_FUNC_RET_MAYBE_IGNORED2
  49   54  
  50   55  FILEMODE = 0555
  51   56  
  52   57  ELFWRAP = elfwrap
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX