aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-08-18 07:59:22 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-08-18 07:59:22 +1000
commitf8ee4092d4b5d23033bf699d1c3a9aa82965fbc5 (patch)
tree790f8590de760548cb2ad9fb574474ca7a670b8f /Makefile.main
parent1590e5814c14c4de4a6accfe9156eb1ce4d1d392 (diff)
downloadskiboot-f8ee4092d4b5d23033bf699d1c3a9aa82965fbc5.zip
skiboot-f8ee4092d4b5d23033bf699d1c3a9aa82965fbc5.tar.gz
skiboot-f8ee4092d4b5d23033bf699d1c3a9aa82965fbc5.tar.bz2
Use target CC for __GNUC__ version defines in extract-gcov
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.main b/Makefile.main
index ec9bafb..0441294 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -198,7 +198,10 @@ version.c: $(SRC)/make_version.sh $(OBJS_NO_VER) .version
include $(shell find $(SRC)/* -name Makefile.check)
extract-gcov: extract-gcov.c
- $(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I$(SRC) -o $@ $<,$<)
+ $(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) \
+ -DTARGET__GNUC__=`echo '__GNUC__'|$(CC) -E -|grep -v '^#'` \
+ -DTARGET__GNUC_MINOR__=`echo '__GNUC__'|$(CC) -E -|grep -v '^#'` \
+ -O0 -g -I$(SRC) -o $@ $<,$<)
coverage-report: skiboot.info
genhtml --branch-coverage -q -o $@ $<