2000-12-18 23:24:19 +02:00
|
|
|
#! /bin/sh
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2006-10-16 19:57:33 +03:00
|
|
|
# Need to disable ccache, or we loose the gcov-needed compiler output files.
|
|
|
|
|
2007-01-29 01:47:35 +02:00
|
|
|
USING_GCOV=1
|
2006-10-16 19:57:33 +03:00
|
|
|
CCACHE_GCOV_VERSION_ENABLED=0
|
|
|
|
if ccache -V > /dev/null 2>&1
|
|
|
|
then
|
|
|
|
CCACHE_VER=`ccache -V | head -1 | sed s/"ccache version "//`
|
|
|
|
if test "$CCACHE_VER" == "2.4-gcov"
|
|
|
|
then
|
|
|
|
CCACHE_GCOV_VERSION_ENABLED=1
|
2006-11-28 22:31:05 +01:00
|
|
|
else
|
|
|
|
CCACHE_DISABLE=1
|
|
|
|
export CCACHE_DISABLE
|
2006-10-16 19:57:33 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
export CCACHE_GCOV_VERSION_ENABLED
|
|
|
|
|
2000-12-18 23:24:19 +02:00
|
|
|
path=`dirname $0`
|
|
|
|
. "$path/SETUP.sh"
|
2000-07-31 21:29:14 +02:00
|
|
|
|
2007-08-22 12:02:23 -06:00
|
|
|
export LDFLAGS="$gcov_link_flags"
|
2006-05-22 17:15:49 +02:00
|
|
|
|
2007-08-22 12:02:23 -06:00
|
|
|
extra_flags="$pentium_cflags $debug_cflags $max_cflags $gcov_compile_flags"
|
2007-01-27 03:46:45 +02:00
|
|
|
c_warnings="$c_warnings $debug_extra_warnings"
|
|
|
|
cxx_warnings="$cxx_warnings $debug_extra_warnings"
|
2007-08-22 12:02:23 -06:00
|
|
|
extra_configs="$pentium_configs $debug_configs $gcov_configs $max_configs"
|
2000-12-07 08:38:46 -07:00
|
|
|
|
2000-12-18 23:24:19 +02:00
|
|
|
. "$path/FINISH.sh"
|