From de1a3737879eef4a9dd283269a896e50a1badabf Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Fri, 14 Jan 2022 09:45:06 +0100 Subject: [PATCH] package/poppler: fix build failure due to gcc bug 68485 The bullet package exhibits gcc bug 68485 when built for the Microblaze architecture with optimization enabled, which causes a build failure. As done for other packages in Buildroot work around this gcc bug by setting optimization to -O0 if BR2_TOOLCHAIN_HAS_GCC_BUG_68485=y like we already do for BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y. Fixes: http://autobuild.buildroot.net/results/96e77ddba5042ba4dacb16b328fc298a4f00f49a/ Signed-off-by: Giulio Benetti Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/poppler/poppler.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/poppler/poppler.mk b/package/poppler/poppler.mk index 9e9bfc9cba..18c044a9f6 100644 --- a/package/poppler/poppler.mk +++ b/package/poppler/poppler.mk @@ -131,4 +131,12 @@ else POPPLER_CONF_OPTS += -DUSE_FLOAT=ON endif +POPPLER_CXXFLAGS = $(TARGET_CXXCFLAGS) + +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y) +POPPLER_CXXFLAGS += -O0 +endif + +POPPLER_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(POPPLER_CXXFLAGS)" + $(eval $(cmake-package))