c5299a7dd0
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>
27 lines
828 B
Makefile
27 lines
828 B
Makefile
################################################################################
|
|
#
|
|
# libspatialindex
|
|
#
|
|
################################################################################
|
|
|
|
LIBSPATIALINDEX_VERSION = 1.8.5
|
|
LIBSPATIALINDEX_SITE = http://download.osgeo.org/libspatialindex
|
|
LIBSPATIALINDEX_SOURCE = spatialindex-src-$(LIBSPATIALINDEX_VERSION).tar.bz2
|
|
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))
|