[PATCH 2 of 3] config/cc: CC_STATIC_LIBSTDCXX depends on CONFIGURE_has_static_libstdcpp

Bryan Hundven bryanhundven@gmail.com
Mon May 30 19:10:00 GMT 2011


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



More information about the crossgcc mailing list