diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-09-01 15:46:37 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-09-02 15:33:54 +1000 |
commit | 0f1c75dbb52efddb5e37f343433223803163bcbb (patch) | |
tree | 9355a83de0be5479f50f111d18b38c6770c998ec /libc | |
parent | 763b065762663a2bfd133f7daca27d829248a0bb (diff) | |
download | skiboot-0f1c75dbb52efddb5e37f343433223803163bcbb.zip skiboot-0f1c75dbb52efddb5e37f343433223803163bcbb.tar.gz skiboot-0f1c75dbb52efddb5e37f343433223803163bcbb.tar.bz2 |
consolidate gcov flags into HOSTGCOVFLAGS for host binaries
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libc')
-rw-r--r-- | libc/test/Makefile.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/test/Makefile.check b/libc/test/Makefile.check index b757f2f..265c586 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 $<, $<) |