build: Add gcov coverage support

This commit is contained in:
Deng Zhengrong 2012-06-23 19:14:12 +08:00 committed by Arun Raghavan
parent 062a104247
commit faba854de7
2 changed files with 28 additions and 0 deletions

View file

@ -55,6 +55,12 @@ AM_LIBADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDADD = $(PTHREAD_LIBS) $(INTLLIBS)
AM_LDFLAGS = $(NODELETE_LDFLAGS)
if HAVE_GCOV
AM_CFLAGS+=$(GCOV_CFLAGS)
AM_CXXFLAGS+=$(GCOV_CFLAGS)
AM_LDFLAGS+=$(GCOV_LIBS)
endif
if STATIC_BINS
BINLDFLAGS = -static
endif