Building libgcc with debug info

Chung-Ju Wu jasonwucj@gmail.com
Fri Jul 19 19:12:00 GMT 2013


On 7/19/13 11:32 PM, Dan Schatzberg wrote:
> I'm building libgcc from gcc 4.8.1 on RHEL 6.3 on a powerpc64 machine.
>
> I set the CFLAGS environment variable to -g3 at configure and make
> time but the produced libgcc does not have any debug info in it. How
> do I build libgcc with debug info?
>
> ---
> Dan Schatzberg
>

Hi, Dan,

You need to set HOST_LIBGCC2_CFLAGS variable in makefile fragment.
Refer to libgcc/config/TARGET/t-* for more samples.


Best regards,
jasonwucj



More information about the Gcc-help mailing list