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)