[Buildroot] [PATCH] package/proj: fix build failure due to gcc bug 68485(C++)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Jan 1 15:54:17 UTC 2020


On Tue, 31 Dec 2019 16:09:57 +0100
Giulio Benetti <giulio.benetti at benettiengineering.com> wrote:

> +PROJ_CXXFLAGS = $(TARGET_CXXFLAGS)
> +
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
> +PROJ_CXXFLAGS += -O0
> +endif
> +
> +PROJ_CONF_ENV += CXXFLAGS="$(PROJ_CXXFLAGS)"

The duplication of the condition was really not necessary, you can use
the same condition to tweak the CFLAGS/CXXFLAGS values.

I've adjusted that and applied. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list