Bug 660968: make jprof build shared library (NPOTB). r=khuey a=asa
--- a/tools/jprof/README.html
+++ b/tools/jprof/README.html
@@ -31,23 +31,17 @@ Jprof operates by installing a timer whi
When this timer goes off, the jprof code inside mozilla walks the function call
stack to determine which code was executing and saves the results into the
<code>jprof-log</code> and <code>jprof-map</code> files. By collecting a large
number of these call stacks, it is possible to deduce where mozilla is spending
its time.
<h3><a name="setup">Setup</a></h3>
-First, check out the jprof source code since it is not a part of the
-default pull. To do this do:
-<pre>
- cvs co mozilla/tools/jprof
-</pre>
-
-<p>Next, configure your mozilla with jprof support by adding
+<p>Configure your mozilla with jprof support by adding
<code>--enable-jprof</code> to your configure options (eg adding
<code>ac_add_options --enable-jprof</code> to your <code>.mozconfig</code>) and
making sure that you do <strong>not</strong> have the
<code>--enable-strip</code> configure option set -- jprof needs symbols to
operate. On many architectures with GCC, you'll need to add
<code>--enable-optimize="-O3 -fno-omit-frame-pointer"</code> or the
equivalent to ensure frame pointer generation in the compiler you're using.</p>
--- a/tools/jprof/stub/Makefile.in
+++ b/tools/jprof/stub/Makefile.in
@@ -42,16 +42,17 @@ srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = jprof
EXPORTS =
LIBRARY_NAME = jprof
EXPORT_LIBRARY = 1
+FORCE_SHARED_LIB = 1
# override optimization
MOZ_OPTIMIZE_FLAGS = -fno-omit-frame-pointer
CPPSRCS = \
libmalloc.cpp \
$(NULL)