summaryrefslogtreecommitdiffstats
path: root/package/libspatialindex/libspatialindex.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-08-14 23:40:59 +0200
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-08-15 18:03:55 +0200
commitc5299a7dd02a1ba74b6e089a428d0de720091e17 (patch)
tree9fe4418e4b709801b2dc281df8b2ec9a744a92dd /package/libspatialindex/libspatialindex.mk
parent8a26adddde1e924236553584a5623485fdc90c7f (diff)
downloadbuildroot-c5299a7dd02a1ba74b6e089a428d0de720091e17.tar.gz
buildroot-c5299a7dd02a1ba74b6e089a428d0de720091e17.zip
libspatialindex: fix build on Microblaze
This commit fixes the build of libspatialindex on the Microblaze architecture by working around a gcc bug, by passing -O0 as the optimization level. A patch to configure.ac is needed to not have -O2 be forced by the libspatialindex build system, and therefore AUTORECONF=YES is now needed. Fixes: http://autobuild.buildroot.net/results/bbba2a2c97dbec21340c7fd07162a316a411cba4/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/libspatialindex/libspatialindex.mk')
-rw-r--r--package/libspatialindex/libspatialindex.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/libspatialindex/libspatialindex.mk b/package/libspatialindex/libspatialindex.mk
index d815364442..3a558dfc7e 100644
--- a/package/libspatialindex/libspatialindex.mk
+++ b/package/libspatialindex/libspatialindex.mk
@@ -11,4 +11,16 @@ LIBSPATIALINDEX_INSTALL_STAGING = YES
LIBSPATIALINDEX_LICENSE = MIT
LIBSPATIALINDEX_LICENSE_FILES = COPYING
+# 0001-configure.ac-do-not-force-O2.patch
+LIBSPATIALINDEX_AUTORECONF = YES
+
+LIBSPATIALINDEX_CXXFLAGS = $(TARGET_CXXFLAGS)
+LIBSPATIALINDEX_CONF_ENV = CXXFLAGS="$(LIBSPATIALINDEX_CXXFLAGS)"
+
+# Workaround gcc ICE
+# (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68485)
+ifeq ($(BR2_microblaze),y)
+LIBSPATIALINDEX_CXXFLAGS += -O0
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud