summaryrefslogtreecommitdiff
path: root/BUILD/compile-pentium64-gcov
diff options
context:
space:
mode:
authormalff/marcsql@weblab.(none) <>2007-08-15 18:10:16 -0600
committermalff/marcsql@weblab.(none) <>2007-08-15 18:10:16 -0600
commitc6a395af0962a8044db6922d1af794e771818c9b (patch)
tree5f172a031cd28da9f76c2cac33cf914000f6c9c9 /BUILD/compile-pentium64-gcov
parentc290b26c0eb3010eb7d605d119015eb6953060f9 (diff)
downloadmariadb-git-c6a395af0962a8044db6922d1af794e771818c9b.tar.gz
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.
Diffstat (limited to 'BUILD/compile-pentium64-gcov')
-rwxr-xr-xBUILD/compile-pentium64-gcov17
1 files changed, 17 insertions, 0 deletions
diff --git a/BUILD/compile-pentium64-gcov b/BUILD/compile-pentium64-gcov
new file mode 100755
index 00000000000..5a99b7f8796
--- /dev/null
+++ b/BUILD/compile-pentium64-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="$pentium64_cflags $debug_cflags $max_cflags $gcov_compile_flags"
+c_warnings="$c_warnings $debug_extra_warnings"
+cxx_warnings="$cxx_warnings $debug_extra_warnings"
+extra_configs="$pentium64_configs $debug_configs $gcov_configs $max_configs"
+
+. "$path/FINISH.sh"