patches/firefox3-06-jemalloc-shared-library.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 17060 7620508144e5
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.

--- a/browser/installer/package-manifest.in	Tue Oct 13 00:40:58 2009
+++ b/browser/installer/package-manifest.in	Tue Oct 13 00:42:30 2009
@@ -96,6 +96,9 @@
 @BINPATH@/README.txt
 @BINPATH@/LICENSE
 @BINPATH@/blocklist.xml
+#ifdef SOLARIS
+@BINPATH@/libjemalloc.so
+#endif
 #ifdef XP_UNIX
 #ifndef XP_MACOSX
 @BINPATH@/mozilla-xremote-client
--- a/memory/jemalloc/Makefile.in	Tue Oct 13 00:54:10 2009
+++ b/memory/jemalloc/Makefile.in	Tue Oct 13 00:54:53 2009
@@ -111,6 +111,7 @@
 ifndef GNU_CC
 MODULE_OPTIMIZE_FLAGS = -xO5
 endif
+OS_LDFLAGS += -z interpose
 endif
 
 LIBRARY_NAME	= jemalloc
@@ -117,7 +118,8 @@
 
 # Build jemalloc as a shared lib.  This is mandatory for Darwin, since a library
 # init function is used on that platform.
-ifeq ($(OS_ARCH),Darwin)
+# On Solaris, we want to have the ability to use LD_PRELOAD to override malloc.
+ifneq (,$(filter Darwin SunOS,$(OS_ARCH)))
 FORCE_SHARED_LIB= 1
 else
 DIST_INSTALL = 1
--- a/browser/installer/removed-files.in	Tue Oct 13 00:54:10 2009
+++ b/browser/installer/removed-files.in	Tue Oct 13 00:54:53 2009
@@ -787,7 +787,9 @@
 chrome/icons/default/default.xpm
 dictionaries/PL.dic
 dictionaries/PL.aff
+#ifndef SOLARIS
 libjemalloc.so
+#endif
 icons/mozicon16.xpm
 icons/mozicon50.xpm
 #endif