undefined reference to `__gcov_init' when using FLAGS+='-fprofile-arcs -ftest-coverage'

Michael Stahl mstahl at redhat.com
Wed Dec 12 02:36:23 PST 2012


On 11/12/12 21:50, John Smith wrote:
> Hi,
> 
> 
> Im trying to build libreoffice for using gcov/loc, so Ive set:
> 
> LDFLAGS+='-fprofile-arcs' CFLAGS+='-fprofile-arcs -ftest-coverage'
> CXXFLAGS+='-fprofile-arcs -ftest-coverage' \
> CPPFLAGS+='-fprofile-arcs -ftest-coverage'
> 
> But I still get this error message (in 'make setup_native')
> 
> undefined reference to `__gcov_init'
> 
> Does anyone have an idea of what might be going on here ?

setup_native still uses the old dmake based build system, most likely
that does not support those *FLAGS variables.  you can check with "make
setup_native VERBOSE=t" if that stuff is actually used.




More information about the LibreOffice mailing list