Bug 660968: make jprof build shared library (NPOTB). r=khuey a=asa
authorRandell Jesup <rjesup@wgate.com>
Tue, 21 Jun 2011 23:16:36 -0400
changeset 70431 736bfe524cc23e7d6705d7be7b813e9dca425ed4
parent 70430 aab12a5b1b2f5fcd11dccada05e395d6119301e0
child 70432 c64b52363a1ba30730ef4c514d75bc25a4f2922a
push idunknown
push userunknown
push dateunknown
reviewerskhuey, asa
bugs660968
milestone6.0a2
Bug 660968: make jprof build shared library (NPOTB). r=khuey a=asa
tools/jprof/README.html
tools/jprof/stub/Makefile.in
--- 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)