disabling libgcov.a?

Ian Lance Taylor iant@google.com
Fri Apr 29 21:36:00 GMT 2011


Steffen Dettmer <steffen.dettmer@googlemail.com> writes:

> I'm trying to build arm-elf-gcc --sysroot and my target does not have
> a file system etc.
> gcc building seems to enforce building of libgcov.a.
>
> - Why is this enforced? I think libgcov is for converage
>   analyzing with gcov and has high requirements (such as needing
>   a file system).
>
> - How can I disable building of libgcov.a?
>   I used a hack in libgcc/Makefile.in, see at the end of the
>   mail. How do I do this better?

Some embedded systems do use libgcov.a and arrange for other schemes for
exposing the profiling data.  But it's true that it's uncommon.  One way
to avoid problems while building is

make inhibit_libc=true

Ian



More information about the Gcc-help mailing list