Re: gcov/lcov code coverage of glusterfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 9, 2013 at 8:40 PM, John Smith <lbalbalba@xxxxxxxxx> wrote:
> On Thu, May 9, 2013 at 7:46 PM, Michael Brown <michael@xxxxxxxxxxxx> wrote:
>> How are you passing the flags?
>>
> LDFLAGS+='-fprofile-arcs' CFLAGS+='-fprofile-arcs -ftest-coverage' ./configure
>
>
>>
>> I just tried:
>>
>> ./configure --prefix=/usr/local/glusterfs {,GF_FUSE_,GF_GLUSTERFS_,GF_}CFLAGS="-fprofile-arcs -ftest-coverage"
>>
>> and was able to build it fine.
>>
> That works for me, thanks !
>
>
>
> Regards,
>
>
> John Smith


Hrm. Looks like I cheered too soon. The options still do not get
propagated properly on my system. It looks like the only place that
CLAGS get properly set this way, is in "./argp-standalone/Makefile".
All the other generated Makefiles do not contain '*FLAGS =
-fprofile-arcs -ftest-coverage '. LDFLAGS = -fprofile-arcs does get
properly propagated to all the generated makefiles, when I specify
that on the configure line.

I run this command:

./configure --prefix=/usr/local/glusterfs CFLAGS="-fprofile-arcs
-ftest-coverage" GF_FUSE_CFLAGS="-fprofile-arcs -ftest-coverage"
GF_GLUSTERFS_CFLAGS="-fprofile-arcs -ftest-coverage"
GF_CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS='-fprofile-arcs'

Any ideas what could be going wrong here ?


Regards,



John Smith.



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux