Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian dpkg (http://www.linux-archive.org/debian-dpkg/)
-   -   Building with gcov (http://www.linux-archive.org/debian-dpkg/698479-building-gcov.html)

Jane Erickson 08-28-2012 03:28 PM

Building with gcov
 
Hi,
I am trying to build entire debian packages with gcov by adding "-fprofile-arcs -ftest-coverage" flags in*DEB_*_APPEND.

However, some of the packages are not compiled, and some of them do not include gcov functions when compiled.

Is there a proper way to compile all the debian packages with gcov?

Thanks,
Jane

Guillem Jover 09-01-2012 05:44 AM

Building with gcov
 
Hi!

On Tue, 2012-08-28 at 11:28:07 -0400, Jane Erickson wrote:
> I am trying to build entire debian packages with gcov by adding
> "-fprofile-arcs -ftest-coverage" flags in DEB_*_APPEND.
>
> However, some of the packages are not compiled, and some of them do not
> include gcov functions when compiled.

Not all Debian packages are using dpkg-buildflags yet, so those flags
might not get globally honoured.

> Is there a proper way to compile all the debian packages with gcov?

Even if you set CFLAGS globally, some packages might not properly pass
those to the build system, or the upstream build system might not even
honour them anyway.

So there's no proper way, except to fix all Debian packages to honour
them one way or another. Currently the only way you can guarantee all
packages will be built with those flags is for example to divert the
compiler binary (gcc) and add a wrapper that injects the desired
flags before calling the real compiler.

thanks,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120901054414.GB4323@gaara.hadrons.org">http://lists.debian.org/20120901054414.GB4323@gaara.hadrons.org


All times are GMT. The time now is 09:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.