summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/libvips/libvips.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/libvips/libvips.mk b/package/libvips/libvips.mk
index d6dddc8bc3..5f80b2d64c 100644
--- a/package/libvips/libvips.mk
+++ b/package/libvips/libvips.mk
@@ -12,6 +12,16 @@ LIBVIPS_LICENSE = LGPLv2.1+
LIBVIPS_LICENSE_FILES = COPYING
# We're patching gtk-doc.make, so need to autoreconf
LIBVIPS_AUTORECONF = YES
+
+# Sparc64 compile fails, for all optimization levels except -O0. To
+# fix the problem, use -O0 with no optimization instead. Bug reported
+# upstream at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69038.
+ifeq ($(BR2_sparc64),y)
+LIBVIPS_CXXFLAGS += -O0
+endif
+
+LIBVIPS_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) $(LIBVIPS_CXXFLAGS)"
+
LIBVIPS_CONF_OPTS = \
--disable-introspection \
--without-dmalloc \
OpenPOWER on IntegriCloud