build with code coverage

Miklos Vajna vmiklos at suse.cz
Mon Jul 8 00:35:12 PDT 2013


Hi,

On Sun, Jul 07, 2013 at 11:00:12PM +0200, John Smith <lbalbalba at gmail.com> wrote:
> Im trying to build libreoffice with gcov/lcov code coverage. Im
> following these steps :
> https://wiki.documentfoundation.org/Development/Lcov
> 
> But im getting this error: http://pastebin.com/ugnMJsyd
> 
> I tried adding  '-lgcov' for ENVLINKFLAGS and LDFLAGS, but that doesnt help.
> 
> Any thoughts and pointers appreciated.

I'm regularly building part of the code with gcov options using this
script:

http://cgit.freedesktop.org/libreoffice/contrib/dev-tools/tree/lcov/coverage.sh

So, setting gb_GCOV does the right thing here. If you want to do that
for the whole build, try using:

----
make bootstrap fetch
make -j <num> -rs -f Makefile.gbuild gb_GCOV=YES
----

instead of plain "make".

HTH,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130708/9a9ccb8e/attachment.pgp>


More information about the LibreOffice mailing list