gcc: preserve CXXFLAGS_FOR_TARGET
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 13 Mar 2016 03:45:16 +0000 (06:45 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 15 Mar 2016 22:14:18 +0000 (23:14 +0100)
commitf67a4f50e2ace3a2c83ac707807ec00a1a4a39b6
tree98e150c0d081708c3bab344072ce1b3f7f083d30
parent4e495978c982fc1d7c4760fd1c27878e4dd2e2d6
gcc: preserve CXXFLAGS_FOR_TARGET

gcc-4.7.x, 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.

This issue is fixed in gcc-5.x

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/gcc/4.7.4/130-pr43538.patch [new file with mode: 0644]
package/gcc/4.8.5/130-pr43538.patch [new file with mode: 0644]
package/gcc/4.9.3/130-pr43538.patch [new file with mode: 0644]