This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: libg.a does not contain debugging information



-----Original Message-----
From: newlib-owner@sourceware.org [mailto:newlib-owner@sourceware.org] On
Behalf Of Martin Walter
Sent: Thursday, August 20, 2009 6:53 PM
To: newlib@sourceware.org
Subject: Re: libg.a does not contain debugging information

> I have ported the newlib 1.17.0 to our architecture, but the libg.a
> does not contain any debugging information and has exactly the same
> size as libc.a. This is how I built the newlib:
>
> export GCC_FOR_TARGET=spear32-gcc
> export CFLAGS_FOR_TARGET="-Os --save-temps"
> ./configure --prefix=/opt/spear --target=spear32
> make && make install
>
> Is there anything wrong with that?

I just found out the following: when leaving CFLAGS_FOR_TARGET
unexported, both libc.a and libg.a contain debugging information. It
would however be nice to have an optimization level set.

Cheers,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]