From 0782fdf9c04f7e75cda1c0679ecfce3ae23d03b9 Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Fri, 6 Apr 2012 13:03:46 -0400 Subject: [PATCH] Bug 719536 - Include symbol table in the Linux nightlies for profiling and debugging. r=ted --HG-- extra : rebase_source : beb0059130c29ae29a772537d54e52e2b9302b78 --- browser/config/mozconfigs/linux32/nightly | 5 +++++ browser/config/mozconfigs/linux64/nightly | 5 +++++ config/autoconf.mk.in | 1 + configure.in | 1 + 4 files changed, 12 insertions(+) diff --git a/browser/config/mozconfigs/linux32/nightly b/browser/config/mozconfigs/linux32/nightly index 07d955745eca..089bde6a58ce 100644 --- a/browser/config/mozconfigs/linux32/nightly +++ b/browser/config/mozconfigs/linux32/nightly @@ -11,6 +11,11 @@ ac_add_options --enable-js-diagnostics # Avoid dependency on libstdc++ 4.5 ac_add_options --enable-stdcxx-compat +# This will overwrite the default of stripping everything and keep the symbol table. +# This is useful for profiling and debugging and only increases the package size +# by 2 MBs. +STRIP_FLAGS="--strip-debug" + # PGO mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10' diff --git a/browser/config/mozconfigs/linux64/nightly b/browser/config/mozconfigs/linux64/nightly index 07d955745eca..089bde6a58ce 100644 --- a/browser/config/mozconfigs/linux64/nightly +++ b/browser/config/mozconfigs/linux64/nightly @@ -11,6 +11,11 @@ ac_add_options --enable-js-diagnostics # Avoid dependency on libstdc++ 4.5 ac_add_options --enable-stdcxx-compat +# This will overwrite the default of stripping everything and keep the symbol table. +# This is useful for profiling and debugging and only increases the package size +# by 2 MBs. +STRIP_FLAGS="--strip-debug" + # PGO mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) @MOZ_OBJDIR@/_profile/pgo/profileserver.py 10' diff --git a/config/autoconf.mk.in b/config/autoconf.mk.in index a90c2cdc2dc1..8cabfe6ec505 100644 --- a/config/autoconf.mk.in +++ b/config/autoconf.mk.in @@ -231,6 +231,7 @@ LIBXUL_LIBS=@LIBXUL_LIBS@ ENABLE_STRIP = @ENABLE_STRIP@ PKG_SKIP_STRIP = @PKG_SKIP_STRIP@ +STRIP_FLAGS = @STRIP_FLAGS@ MOZ_POST_DSO_LIB_COMMAND = @MOZ_POST_DSO_LIB_COMMAND@ MOZ_POST_PROGRAM_COMMAND = @MOZ_POST_PROGRAM_COMMAND@ diff --git a/configure.in b/configure.in index cb8107ace381..66d31340972a 100644 --- a/configure.in +++ b/configure.in @@ -8403,6 +8403,7 @@ AC_SUBST(MOZ_ANDROID_HISTORY) AC_SUBST(MOZ_WEBSMS_BACKEND) AC_SUBST(ENABLE_STRIP) AC_SUBST(PKG_SKIP_STRIP) +AC_SUBST(STRIP_FLAGS) AC_SUBST(USE_ELF_DYNSTR_GC) AC_SUBST(USE_ELF_HACK) AC_SUBST(INCREMENTAL_LINKER)