[Buildroot] [PATCH 1/2] gcc: preserve CXXFLAGS_FOR_TARGET

Max Filippov jcmvbkbc at gmail.com
Sun Mar 13 03:18:42 UTC 2016


Hi Yann,

On Sun, Mar 13, 2016 at 1:56 AM, Yann E. MORIN <yann.morin.1998 at free.fr> wrote:
> On 2016-03-11 03:45 +0300, Max Filippov spake thusly:
>> gcc-4.8.x and gcc-4.9.x don't propagate CXXFLAGS_FOR_TARGET to CXXFLAGS
>> for libstdc++ build. As a result libstdc++ is built without
>> TARGET_CFLAGS and may fail to link with applications using it, see e.g.
>>
>>   http://autobuild.buildroot.net/results/81a3bca5cbcf789c7ce1aa221a6a4154dd7c3917/
>>
>> Instead of passing TARGET_ABI or TARGET_CFLAGS for libstdc++ in
>> --enable-cxx-flags parameter backport the patch that fixes propagation
>> of CXXFLAGS_FOR_TARGET to CXXFLAGS.
>>
>> Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
>> ---
>>  package/gcc/4.8.5/130-pr43538.patch | 25 +++++++++++++++++++++++++
>>  package/gcc/4.9.3/130-pr43538.patch | 25 +++++++++++++++++++++++++
>
> As already noticed by Arnout, this is not done for gcc-4.7. Is it
> because it is not affected by the issue, or because upstream has not
> fixed it?

It's me not seeing 4.7.x in the menuconfig list. Yes, 4.7.x is affected too.
I'll send a new version with backport to 4.7.x.

> Is the latter case, we'd still have the issue for gcc-4.7, no? Or do we
> not care about it any more (I don't, TBH...)?
>
> Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>

-- 
Thanks.
-- Max



More information about the buildroot mailing list