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 1 of 2] Add support for static toolchains


On Wed, Dec 8, 2010 at 3:15 PM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Bryan, All,
>
> On Monday 18 October 2010 23:12:03 Bryan Hundven wrote:
>> # HG changeset patch
>> # User Bryan Hundven <bryanhundven@gmail.com>
>> # Date 1287429308 25200
>> # Node ID 8091950d99a8b10bbff4b7a35518380afeefc5f6
>> # Parent Â98b7806295cc7be717a01854a24009346c0f4fef
>> Add support for static toolchains
>
> I've split the patch in 5 parts:
> - config: add option to build statically linked toolchain
> - complibs: do not prompt for shared libs if static selected
> - debug/gdb: global static forces static cross-gdb
> - binutils/binutils: build statically
> - cc/gcc: build final gcc statically
>
> That way, if a component breaks but not the others (eg binutils breaks, but
> gcc still works), it is easy to revert only the binutils part, not touching
> the functional ones.
>
> As for gdb, I took the other approach: your patch was hidding the "static"
> option for the cross-gdb when global static was set. I choose to force it
> (with a 'select'). That is IMHO better, for two reasons:
> - first, the user sees the same option set in the menu,
> - second, it makes the code one line smaller :-)
>
> I applied the same for the static libstdc++ in gcc: force it rather than
> hide it.
>
> I will reply with my series later, after I've done a few tests...
>
> 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. Â|
> '------------------------------^-------^------------------^--------------------'
>

Works for me! I would also like to see these patches.

-Bryan

--
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]