Building Single Tree for a Specific Set of CFLAGS

Christophe Lyon christophe.lyon@arm.com
Wed Mar 27 08:52:29 GMT 2024


Hi!

On 3/26/24 22:52, Joel Sherrill via Gcc wrote:
> Hi
> 
> For RTEMS, we normally build a multilib'ed gcc+newlib, but I have a case
> where the CPU model is something not covered by our multilibs and not one
> we are keen to add. I've looked around but not found anything that makes me
> feel confident.
> 
> What's the magic for building a gcc+newlib with a single set of libraries
> that are built for a specific CPU CFLAGS?
> 
> I am trying --disable-multlibs on the gcc configure and adding
> CFLAGS_FOR_TARGET to make.
> 
> Advice appreciated.
> 

I would configure GCC with --disable-multilibs --with-cpu=XXX 
--with-mode=XXX --with-float=XXX [maybe --with-fpu=XXX]
This way GCC defaults to what you want.

Thanks,

Christophe


> Thanks.
> 
> --joel


More information about the Gcc mailing list