public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Christophe Lyon <christophe.lyon@arm.com>
To: gcc@gcc.gnu.org
Subject: Re: Building Single Tree for a Specific Set of CFLAGS
Date: Wed, 27 Mar 2024 09:52:29 +0100	[thread overview]
Message-ID: <8813b548-3356-4059-b642-38dcfde6f19d@arm.com> (raw)
In-Reply-To: <CAF9ehCUCZcBkqRF62F4fBZ6VWGxSxX5qWEZqZQWXROXKbhMEYg@mail.gmail.com>

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

  reply	other threads:[~2024-03-27  8:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-26 21:52 Joel Sherrill
2024-03-27  8:52 ` Christophe Lyon [this message]
2024-03-27 10:35   ` Kai Ruottu
2024-03-27 19:07   ` Joel Sherrill
2024-03-28  9:17     ` Christophe Lyon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8813b548-3356-4059-b642-38dcfde6f19d@arm.com \
    --to=christophe.lyon@arm.com \
    --cc=gcc@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).