This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: newlib & libgcov
"Bingfeng Mei" <bmei@broadcom.com> writes:
> Both -Dinhibit_libc and -DL_gcov are used as shown in our building log
> file. I guess -Dinhibit_libc is added because we used newlibc instead
> of glibc. I tried to grep these functions in newlibc and didn't find
> them. My question is how to enable gcov with newlibc. Do I need to
> write my own versions of them? Any suggestion is greatly appreciated.
You need to configure with --with-headers so that the headers are used during
the build and that inhibit_libc is not defined. I think this is what the
crosstool-newlib script does as well.
Adam