newlib & libgcov
Adam Nemet
anemet@caviumnetworks.com
Thu Jun 12 18:11:00 GMT 2008
"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
More information about the Gcc
mailing list