summaryrefslogtreecommitdiffstats
path: root/libc/test
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-09-01 15:46:37 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-09-02 15:33:54 +1000
commit0f1c75dbb52efddb5e37f343433223803163bcbb (patch)
tree9355a83de0be5479f50f111d18b38c6770c998ec /libc/test
parent763b065762663a2bfd133f7daca27d829248a0bb (diff)
downloadblackbird-skiboot-0f1c75dbb52efddb5e37f343433223803163bcbb.tar.gz
blackbird-skiboot-0f1c75dbb52efddb5e37f343433223803163bcbb.zip
consolidate gcov flags into HOSTGCOVFLAGS for host binaries
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc/test')
-rw-r--r--libc/test/Makefile.check4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/test/Makefile.check b/libc/test/Makefile.check
index b757f2fa..265c586c 100644
--- a/libc/test/Makefile.check
+++ b/libc/test/Makefile.check
@@ -35,13 +35,13 @@ $(LIBC_TEST) : % : %.c
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -I libfdt -I libc/include -o $@ $<, $<)
$(LIBC_TEST:%=%-gcov): %-gcov : %.c %
- $(call Q, HOSTCC ,(cd $(dir $<); $(HOSTCC) $(HOSTCFLAGS) -fprofile-arcs -ftest-coverage -lgcov -O0 -g -I$(shell pwd)/include -I$(shell pwd) -I$(shell pwd)/libfdt -I$(shell pwd)/libc/include -o $(notdir $@) $(notdir $<)), $<)
+ $(call Q, HOSTCC ,(cd $(dir $<); $(HOSTCC) $(HOSTCFLAGS) $(HOSTGCOVCFLAGS) -I$(shell pwd)/include -I$(shell pwd) -I$(shell pwd)/libfdt -I$(shell pwd)/libc/include -o $(notdir $@) $(notdir $<)), $<)
$(LIBC_DUALLIB_TEST) : % : %.o %-test.o
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -I libfdt -o $@ $@-test.o $<, $<)
$(LIBC_DUALLIB_TEST:%=%-gcov) : %-gcov : %-gcov.o %-gcov-test.o
- $(call Q, HOSTCC ,(cd $(dir $<); $(HOSTCC) $(HOSTCFLAGS) -fprofile-arcs -ftest-coverage -lgcov -O0 -pg -g -I$(shell pwd)/include -I$(shell pwd)/. -I$(shell pwd)/libfdt -o $(notdir $@) $(notdir $@)-test.o $(notdir $<)), $<)
+ $(call Q, HOSTCC ,(cd $(dir $<); $(HOSTCC) $(HOSTCFLAGS) $(HOSTGCOVCFLAGS) -I$(shell pwd)/include -I$(shell pwd)/. -I$(shell pwd)/libfdt -o $(notdir $@) $(notdir $@)-test.o $(notdir $<)), $<)
$(LIBC_DUALLIB_TEST:%=%-test.o): %-test.o : %-test.c
$(call Q, HOSTCC ,$(HOSTCC) $(HOSTCFLAGS) -O0 -g -I include -I . -I libfdt -I libc/include -ffreestanding -o $@ -c $<, $<)
OpenPOWER on IntegriCloud