This is the mail archive of the newlib@sources.redhat.com 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: Building PPC EABI without "-mno-eabi -mrelocatable-lib"?


On Wed, Jul 06, 2005 at 05:30:57PM -0400, Darin Johnson wrote:
> Is there an easy way to build for "powerpc-*-eabi" so that the
> "-mno-eabi -mrelocatable-lib" options are not enabled?  Ie,
> this is for a statically linked and unrelocatable system, and
> I don't want a large GOT2 table.

For no PIC, no GOT, in powerpc-linux (which also produces eabi), I added
-mno-relocatable-lib to newlib/configure.host. (And if you find the
offending -mno-eabi in there, you may want to zap it. :-)

> I can see how to patch libgloss and newlib to do this, but I'd have
> to redo this for every release.   Having non-relocatable embedded
> PPC systems is very common, so I suspect there may be a config
> option that I'm missing. 

No, you're right, the config option worked for my embedded system.

Erik


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