Print this page
5468 Missing dependencies in lib/Makefile
5709 Add binary compatibility with Solaris 10 update 10.

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdtrace/Makefile.com
          +++ new/usr/src/lib/libdtrace/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) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright (c) 2012 by Delphix. All rights reserved.
       24 +# Copyright 2015 RackTop Systems.
  24   25  #
  25   26  
  26   27  LIBRARY = libdtrace.a
  27   28  VERS = .1
  28   29  
  29   30  LIBSRCS = \
  30   31          dt_aggregate.c \
  31   32          dt_as.c \
  32   33          dt_buf.c \
  33   34          dt_cc.c \
↓ open down ↓ 91 lines elided ↑ open up ↑
 125  126  CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
 126  127  CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
 127  128  
 128  129  CERRWARN += -_gcc=-Wno-unused-label
 129  130  CERRWARN += -_gcc=-Wno-unused-variable
 130  131  CERRWARN += -_gcc=-Wno-parentheses
 131  132  CERRWARN += -_gcc=-Wno-uninitialized
 132  133  CERRWARN += -_gcc=-Wno-switch
 133  134  
 134  135  YYCFLAGS =
 135      -LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc
 136      -DRTILDLIBS = $(LDLIBS.lib) -lc
      136 +$(LIBS) := LDLIBS += -lgen -lproc -lrtld_db -lnsl -lsocket -lctf -lelf -lc
 137  137  
 138  138  yydebug := YYCFLAGS += -DYYDEBUG
 139  139  
 140  140  $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
 141  141  
 142  142  LFLAGS = -t -v
 143  143  YFLAGS = -d -v
 144  144  
 145  145  ROOTDLIBDIR = $(ROOT)/usr/lib/dtrace
 146  146  ROOTDLIBDIR64 = $(ROOT)/usr/lib/dtrace/64
↓ open down ↓ 8 lines elided ↑ open up ↑
 155  155  $(ROOTDLIBDIR)/%.so := FILEMODE=555
 156  156  $(ROOTDLIBDIR64)/%.so := FILEMODE=555
 157  157  
 158  158  .KEEP_STATE:
 159  159  
 160  160  all: $(LIBS) $(DRTIOBJ) $(LIBDAUDIT)
 161  161  
 162  162  lint: lintdlink lintcheck
 163  163  
 164  164  lintdlink: $(DLINKSRCS:%.c=../common/%.c)
 165      -        $(LINT.c) $(DLINKSRCS:%.c=../common/%.c) $(DRTILDLIBS)
      165 +        $(LINT.c) $(DLINKSRCS:%.c=../common/%.c) $(LDLIBS) -lc
 166  166  
 167  167  dt_lex.c: $(SRCDIR)/dt_lex.l dt_grammar.h
 168  168          $(LEX) $(LFLAGS) $(SRCDIR)/dt_lex.l > $@
 169  169  
 170  170  dt_grammar.c dt_grammar.h: $(SRCDIR)/dt_grammar.y
 171  171          $(YACC) $(YFLAGS) $(SRCDIR)/dt_grammar.y
 172  172          @mv y.tab.h dt_grammar.h
 173  173          @mv y.tab.c dt_grammar.c
 174  174  
 175  175  pics/dt_lex.o pics/dt_grammar.o := CFLAGS += $(YYCFLAGS)
↓ open down ↓ 46 lines elided ↑ open up ↑
 222  222  pics/%.o: ../$(MACH)/%.s
 223  223          $(COMPILE.s) -o $@ $<
 224  224          $(POST_PROCESS_O)
 225  225  
 226  226  $(DRTIOBJ): $(DRTIOBJS)
 227  227          $(LD) -o $@ -r -Blocal -Breduce $(DRTIOBJS)
 228  228          $(POST_PROCESS_O)
 229  229  
 230  230  $(LIBDAUDIT): $(LIBDAUDITOBJS)
 231  231          $(LINK.c) -o $@ $(GSHARED) -h$(LIBDAUDIT) $(ZTEXT) $(ZDEFS) $(BDIRECT) \
 232      -            $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) $(LIBDAUDITOBJS) \
      232 +            $(MAPFILE.PGA:%=-M%) $(MAPFILE.NED:%=-M%) $(LIBDAUDITOBJS) $(LDLIBS) \
 233  233              -lmapmalloc -lc -lproc
 234  234          $(POST_PROCESS_SO)
 235  235  
 236  236  $(ROOTDLIBDIR):
 237  237          $(INS.dir)
 238  238  
 239  239  $(ROOTDLIBDIR64): $(ROOTDLIBDIR)
 240  240          $(INS.dir)
 241  241  
 242  242  $(ROOTDLIBDIR)/%.d: ../common/%.d
↓ open down ↓ 27 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX