From 0f4ea8482b3916281c9f42af8941ce2dd3c1f512 Mon Sep 17 00:00:00 2001 From: Benoit Girard Date: Fri, 4 May 2012 15:35:02 -0400 Subject: [PATCH] Bug 751355 - Linux and Fennec profiling builds should be built with disable elfhack and not strip symbols. r=ted --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configure.in b/configure.in index 3129b2889df..df29fc28756 100644 --- a/configure.in +++ b/configure.in @@ -1926,6 +1926,11 @@ MOZ_ARG_ENABLE_BOOL(profiling, MOZ_PROFILING=1, MOZ_PROFILING= ) +# For profiling builds keep the symbol information +if test "$MOZ_PROFILING" -a -z "$STRIP_FLAGS"; then + STRIP_FLAGS="--strip-debug" +fi + dnl ======================================================== dnl = Use Valgrind dnl ======================================================== @@ -7438,6 +7443,13 @@ MOZ_ARG_DISABLE_BOOL(elf-hack, USE_ELF_HACK=, USE_ELF_HACK=1) +# Disable elf hack for profiling because the built in profiler +# doesn't read the segments properly with elf hack. This is +# temporary and should be fixed soon in the profiler. +if test "$MOZ_PROFILING" = 1; then + USE_ELF_HACK= +fi + # Only enable elfhack where supported if test "$USE_ELF_HACK" = 1; then case "${HOST_OS_ARCH},${OS_ARCH}" in