diff --git a/db/sqlite3/src/Makefile.in b/db/sqlite3/src/Makefile.in
index e860061bf04c791c5be0b0b39def25243e7d184f..a0304fa5efec1966d59531bdee2c3240c1b71e96 100644
--- a/db/sqlite3/src/Makefile.in
+++ b/db/sqlite3/src/Makefile.in
@@ -77,6 +77,12 @@ export:: sqlite-version.h
 endif
 endif
 
+ifeq (Darwin,$(OS_TARGET))
+# On OSX, with jemalloc enabled, having sqlite linked against mozutils
+# causes crashes in NSS standalone tools.
+MOZ_UTILS_LDFLAGS =
+endif
+
 # XXX Force -O2 optimisation on Mac because using the default -O3 causes
 # crashes. See bug 676499.
 ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))