From bc6e536db372bb057aa758b2cc437b02f4004856 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 15 Aug 2007 18:10:16 -0600 Subject: Bug#23062 (GCOV build: helper scripts missing in the BUILD directory) This patch provides compile helper scripts only, no server logic is affected. Before this patch, GCOV and GPROF build scripts were only provided for pentium platforms. With this patch, pentium, pentium64 and amd64 platforms have associated helper build scripts. The GCOV and GPROF specific compilation flags are set once in SETUP.sh, to avoid code duplication. BUILD/SETUP.sh: Moved GCOV and GPROF flags to compile-pentium-{gcov,gprof) to SETUP.sh BUILD/compile-pentium-gcov: Moved GCOV and GPROF flags to compile-pentium-{gcov,gprof) to SETUP.sh BUILD/compile-pentium-gprof: Moved GCOV and GPROF flags to compile-pentium-{gcov,gprof) to SETUP.sh BUILD/compile-amd64-gcov: Added helper scripts for GCOV and GPROF builds. BUILD/compile-amd64-gprof: Added helper scripts for GCOV and GPROF builds. BUILD/compile-pentium64-gcov: Added helper scripts for GCOV and GPROF builds. BUILD/compile-pentium64-gprof: Added helper scripts for GCOV and GPROF builds. --- BUILD/compile-amd64-gcov | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 BUILD/compile-amd64-gcov (limited to 'BUILD/compile-amd64-gcov') diff --git a/BUILD/compile-amd64-gcov b/BUILD/compile-amd64-gcov new file mode 100755 index 00000000000..239a4aed0fb --- /dev/null +++ b/BUILD/compile-amd64-gcov @@ -0,0 +1,17 @@ +#! /bin/sh + +path=`dirname $0` +. "$path/SETUP.sh" + +# Need to disable ccache, or we loose the gcov-needed compiler output files. +CCACHE_DISABLE=1 +export CCACHE_DISABLE + +export LDFLAGS="$gcov_link_flags" + +extra_flags="$amd64_cflags $debug_cflags $max_cflags $gcov_compile_flags" +c_warnings="$c_warnings $debug_extra_warnings" +cxx_warnings="$cxx_warnings $debug_extra_warnings" +extra_configs="$amd64_configs $debug_configs $gcov_configs $max_configs" + +. "$path/FINISH.sh" -- cgit v1.2.1