FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 08-28-2012, 03:28 PM
Jane Erickson
 
Default 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
 
Old 09-01-2012, 05:44 AM
Guillem Jover
 
Default 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
 

Thread Tools




All times are GMT. The time now is 02:19 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org