Building libgcc with debug info

Dan Schatzberg schatzberg.dan@gmail.com
Sat Jul 20 05:19:00 GMT 2013


Hi jasonwucj,

I actually see my CFLAGS variables being used as expected, but no
debug information is generated. If I pass CFLAGS=-gstabs I actually do
get debug info, just not with -g. Why won't it produce dwarf debug
information for libgcc?
---
Dan Schatzberg


On Fri, Jul 19, 2013 at 1:39 PM, Chung-Ju Wu <jasonwucj@gmail.com> wrote:
> 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