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

See the CrossGCC FAQ for lots more information.


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: [PATCH 6 of 6] cc/gcc: build bare-metal gcc statically


Bryan, All,

On Thursday 09 December 2010 01:19:21 Bryan Hundven wrote:
> On Wed, Dec 8, 2010 at 3:59 PM, Yann E. MORIN
> <yann.morin.1998@anciens.enib.fr> wrote:
> > # HG changeset patch
> > # User Bryan Hundven <bryanhundven@gmail.com>
> > # Date 1287436323 -7200
> > # Node ID 844af83f1a8fcc4275b120fbbcdb93af16d1a719
> > # Parent Âc78e61daa6977913fe7a92d8bf6358f47c0d255c
> > cc/gcc: build bare-metal gcc statically
[--SNIP patch--]
> Ah, oh well. I guess I "didn't care" about bare-metal.
> Thanks for fixing that!

Cheers! :-)

> As for the -lstdc++ stuff, -static-libstdc++ could be set by doing
> something like:
> 
> ------8<----8<------
> if [ ! "${CT_CC_GCC_4_5_or_later}" = "y" ]; then
>     extra_config+=("--with-host-libstdcxx=-static-libgcc
> -Wl,-Bstatic,-lstdc++,-Bdynamic -lm")
> else
>     core_LDFLAGS+=("-static-libstdc++")
> fi
> ------8<----8<------
> ?
> 
> If you don't want to do that, I can add it to my list of patches for
> gcc/binutils snapshot support.

Hmm, not in this patch static-toolchain series. It has potential to be
disruptive enough that we do not want to add yet another bit to it.

So yes, make it a separate patch in your snapshot series, please.

> (P.S., I don't know who '-r' is, it was in the "To:" field of this email... ;) )

Yep, I messed things up in the arguments to 'hg email', and was trying to
do a dry-run, but I entered -t instead of -n, and so the next arg was -r to
specify the revisions to send, and -t is --to, so it tried to send to -r...

Sorry for the noise... :-(

OK, going to bed now, it's 1:30am here...

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

--
For unsubscribe information see http://sourceware.org/lists.html#faq


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