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 2 of 3] config/cc: CC_STATIC_LIBSTDCXX depends on CONFIGURE_has_static_libstdcpp


On Mon, May 30, 2011 at 9:35 AM, Yann E. MORIN
<yann.morin.1998@anciens.enib.fr> wrote:
> Bryan, All,
>
> On Monday 30 May 2011 06:59:05 Bryan Hundven wrote:
>> config/cc: CC_STATIC_LIBSTDCXX depends on CONFIGURE_has_static_libstdcpp
> [--SNIP--]
>> --- a/scripts/build/cc/gcc.sh Sun May 29 21:58:08 2011 -0700
>> +++ b/scripts/build/cc/gcc.sh Sun May 29 21:58:28 2011 -0700
>> @@ -197,7 +197,7 @@
>> Â Â Â Â Âcore_LDFLAGS+=("-lstdc++")
>> Â Â Â Â Âcore_LDFLAGS+=("-lm")
>> Â Â Âelse
>> - Â Â Â Âif [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then
>> + Â Â Â Âif [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" -a "${CONFIGURE_has_static_libstdcpp}" = "y" ]; then
>
> No need to test CONFIGURE_has_static_libstdcpp here.
>
>> Â Â Â Â Â Â Â# this is from CodeSourcery arm-2010q1-202-arm-none-linux-gnueabi.src.tar.bz2
>> Â Â Â Â Â Â Â# build script
>> Â Â Â Â Â Â Â# FIXME: if the host gcc is gcc-4.5 then presumably we could use -static-libstdc++,
>> @@ -448,7 +448,7 @@
>> Â Â Â Â Âfinal_LDFLAGS+=("-lstdc++")
>> Â Â Â Â Âfinal_LDFLAGS+=("-lm")
>> Â Â Âelse
>> - Â Â Â Âif [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" ]; then
>> + Â Â Â Âif [ "${CT_CC_STATIC_LIBSTDCXX}" = "y" -a "${CONFIGURE_has_static_libstdcpp}" = "y" ]; then
>
> Ditto.
>
> Add the has_or_warn hunk from the previous patch in this one.

Ah, because the has_or_warn disables CONFIGURE_has_static_libstdcpp,
which is depended on by CT_CC_STATIC_LIBSTDCXX, then
CT_CC_STATIC_LIBSTDCXX won't be enabled either.

Ok. Drop this one too.

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