mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
Bug 1041795 - Disable system libs when generating DTrace probes. f=sfink f=ginn.chen
This commit is contained in:
parent
0bfc866519
commit
c058a442f6
@ -806,7 +806,7 @@ ifdef DTRACE_PROBE_OBJ
|
|||||||
ifndef DTRACE_LIB_DEPENDENT
|
ifndef DTRACE_LIB_DEPENDENT
|
||||||
NON_DTRACE_OBJS := $(filter-out $(DTRACE_PROBE_OBJ),$(OBJS))
|
NON_DTRACE_OBJS := $(filter-out $(DTRACE_PROBE_OBJ),$(OBJS))
|
||||||
$(DTRACE_PROBE_OBJ): $(NON_DTRACE_OBJS)
|
$(DTRACE_PROBE_OBJ): $(NON_DTRACE_OBJS)
|
||||||
dtrace -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(NON_DTRACE_OBJS)
|
dtrace -x nolibs -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(NON_DTRACE_OBJS)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -824,7 +824,7 @@ ifndef INCREMENTAL_LINKER
|
|||||||
endif
|
endif
|
||||||
ifdef DTRACE_LIB_DEPENDENT
|
ifdef DTRACE_LIB_DEPENDENT
|
||||||
ifndef XP_MACOSX
|
ifndef XP_MACOSX
|
||||||
dtrace -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(shell $(EXPAND_LIBS) $(MOZILLA_PROBE_LIBS))
|
dtrace -x nolibs -G -C -s $(MOZILLA_DTRACE_SRC) -o $(DTRACE_PROBE_OBJ) $(shell $(EXPAND_LIBS) $(MOZILLA_PROBE_LIBS))
|
||||||
endif
|
endif
|
||||||
$(EXPAND_MKSHLIB) $(SHLIB_LDSTARTFILE) $(OBJS) $(SUB_SHLOBJS) $(DTRACE_PROBE_OBJ) $(MOZILLA_PROBE_LIBS) $(RESFILE) $(LDFLAGS) $(WRAP_LDFLAGS) $(STATIC_LIBS) $(SHARED_LIBS) $(EXTRA_DSO_LDOPTS) $(MOZ_GLUE_LDFLAGS) $(EXTRA_LIBS) $(OS_LIBS) $(SHLIB_LDENDFILE)
|
$(EXPAND_MKSHLIB) $(SHLIB_LDSTARTFILE) $(OBJS) $(SUB_SHLOBJS) $(DTRACE_PROBE_OBJ) $(MOZILLA_PROBE_LIBS) $(RESFILE) $(LDFLAGS) $(WRAP_LDFLAGS) $(STATIC_LIBS) $(SHARED_LIBS) $(EXTRA_DSO_LDOPTS) $(MOZ_GLUE_LDFLAGS) $(EXTRA_LIBS) $(OS_LIBS) $(SHLIB_LDENDFILE)
|
||||||
@$(RM) $(DTRACE_PROBE_OBJ)
|
@$(RM) $(DTRACE_PROBE_OBJ)
|
||||||
|
@ -297,7 +297,7 @@ endif
|
|||||||
|
|
||||||
ifdef HAVE_DTRACE
|
ifdef HAVE_DTRACE
|
||||||
$(CURDIR)/javascript-trace.h: $(srcdir)/devtools/javascript-trace.d
|
$(CURDIR)/javascript-trace.h: $(srcdir)/devtools/javascript-trace.d
|
||||||
dtrace -h -s $(srcdir)/devtools/javascript-trace.d -o javascript-trace.h.in
|
dtrace -x nolibs -h -s $(srcdir)/devtools/javascript-trace.d -o javascript-trace.h.in
|
||||||
sed -e 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
|
sed -e 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
|
||||||
-e '/const/!s/char \*/const char */g' \
|
-e '/const/!s/char \*/const char */g' \
|
||||||
javascript-trace.h.in > javascript-trace.h
|
javascript-trace.h.in > javascript-trace.h
|
||||||
|
@ -7,7 +7,7 @@ export:: $(DIST)/include/mozilla-trace.h
|
|||||||
|
|
||||||
# Replace _DTRACE_VERSION with INCLUDE_MOZILLA_DTRACE
|
# Replace _DTRACE_VERSION with INCLUDE_MOZILLA_DTRACE
|
||||||
$(DIST)/include/mozilla-trace.h: mozilla-trace.d Makefile
|
$(DIST)/include/mozilla-trace.h: mozilla-trace.d Makefile
|
||||||
dtrace -h -s $(srcdir)/mozilla-trace.d -o mozilla-trace.h.tmp
|
dtrace -x nolibs -h -s $(srcdir)/mozilla-trace.d -o mozilla-trace.h.tmp
|
||||||
sed -e 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
|
sed -e 's/if _DTRACE_VERSION/ifdef INCLUDE_MOZILLA_DTRACE/' \
|
||||||
mozilla-trace.h.tmp > $(DIST)/include/mozilla-trace.h
|
mozilla-trace.h.tmp > $(DIST)/include/mozilla-trace.h
|
||||||
rm mozilla-trace.h.tmp
|
rm mozilla-trace.h.tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user