package/proj: fix build failure due to gcc bug 68485(C++)
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Tue, 31 Dec 2019 15:09:57 +0000 (16:09 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 1 Jan 2020 15:52:12 +0000 (16:52 +0100)
commit11874eea431303c09daeb560785e0a25fd069a3a
tree343537fca63d12d492a770612118c6eff1684e6a
parent061768a04085be1b118e056b8523976edbd06823
package/proj: fix build failure due to gcc bug 68485(C++)

The proj package exhibits gcc bug 68485 when building for the
Microblaze architecture C files (which was already worked around), but
also for C++ files.

As done for other packages in Buildroot work around this gcc bug by
setting optimization to -O0 when compiling C++ files too if
BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y.

Fixes:
http://autobuild.buildroot.net/results/dc9/dc9bc52ff3d5a83dcfe4a86a391590bef57e1cf0/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[Thomas: rework implementation to use a single condition for both CFLAGS and CXXFLAGS]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/proj/proj.mk