All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/libgeos: fix build failure due to Gcc Bug 68485
@ 2021-02-12 22:42 Giulio Benetti
  2021-02-13 21:51 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Giulio Benetti @ 2021-02-12 22:42 UTC (permalink / raw)
  To: buildroot

Package libgeos manifests Microblaze Gcc Bug 68485 resulting in a build
failure due to an Internal Compiler Error.

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.

Fixes:
http://autobuild.buildroot.net/results/0da/0daa6b259aea5381fad86d01e6dd026b1c8ad073/

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/libgeos/libgeos.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/libgeos/libgeos.mk b/package/libgeos/libgeos.mk
index 50c3832c01..a355732af8 100644
--- a/package/libgeos/libgeos.mk
+++ b/package/libgeos/libgeos.mk
@@ -13,8 +13,16 @@ LIBGEOS_INSTALL_STAGING = YES
 LIBGEOS_CONFIG_SCRIPTS = geos-config
 LIBGEOS_CONF_OPTS = -DBUILD_BENCHMARKS=OFF
 
+LIBGEOS_CXXFLAGS = $(TARGET_CXXCFLAGS)
+
+ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_68485),y)
+LIBGEOS_CXXFLAGS += -O0
+endif
+
 ifeq ($(BR2_arm)$(BR2_armeb),y)
 LIBGEOS_CONF_OPTS += -DDISABLE_GEOS_INLINE=ON
 endif
 
+LIBGEOS_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBGEOS_CXXFLAGS)"
+
 $(eval $(cmake-package))
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-15 19:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 22:42 [Buildroot] [PATCH] package/libgeos: fix build failure due to Gcc Bug 68485 Giulio Benetti
2021-02-13 21:51 ` Thomas Petazzoni
2021-02-14 23:46   ` Giulio Benetti
2021-02-15  8:58     ` Thomas Petazzoni
2021-02-15 19:27       ` Giulio Benetti

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.