From f76b2cd8d81d001aca35def6f7f938e77a2094ef Mon Sep 17 00:00:00 2001 From: Giulio Benetti Date: Tue, 27 Jul 2021 00:34:33 +0200 Subject: [PATCH] package/libgeos: fix build failure due to missing -mcmodel=large When building libgeos for or1k -mcmodel=large is needed to link, so let's add that gcc option in case we're building for or1k. Upstream gcc doesn't have the -mcmodel=large option for or1k, but all released Buildroot gcc versions have the patch to add it, so that's fine. Signed-off-by: Giulio Benetti Reviewed-by: Maxim Kochetkov Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- package/libgeos/libgeos.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/libgeos/libgeos.mk b/package/libgeos/libgeos.mk index a355732af8..43211d0434 100644 --- a/package/libgeos/libgeos.mk +++ b/package/libgeos/libgeos.mk @@ -23,6 +23,10 @@ ifeq ($(BR2_arm)$(BR2_armeb),y) LIBGEOS_CONF_OPTS += -DDISABLE_GEOS_INLINE=ON endif +ifeq ($(BR2_or1k),y) +LIBGEOS_CXXFLAGS += -mcmodel=large +endif + LIBGEOS_CONF_OPTS += -DCMAKE_CXX_FLAGS="$(LIBGEOS_CXXFLAGS)" $(eval $(cmake-package)) -- 2.30.2