[Buildroot] [PATCH] libvips: fix compile error for sparc64
Waldemar Brodkorb
wbx at openadk.org
Mon Nov 23 16:47:03 UTC 2015
Fixes following build error:
http://autobuild.buildroot.net/results/1515f070c0fd410c681fc8306700244c34eb1635/
Signed-off-by: Waldemar Brodkorb <wbx at openadk.org>
---
package/libvips/libvips.mk | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/package/libvips/libvips.mk b/package/libvips/libvips.mk
index d6dddc8..248de41 100644
--- a/package/libvips/libvips.mk
+++ b/package/libvips/libvips.mk
@@ -12,6 +12,17 @@ LIBVIPS_LICENSE = LGPLv2.1+
LIBVIPS_LICENSE_FILES = COPYING
# We're patching gtk-doc.make, so need to autoreconf
LIBVIPS_AUTORECONF = YES
+
+# Sparc64 compile fails, this seems to be caused by the -Os option we pass
+# by default. To fix the problem, use -O2 with normal optimization instead.
+ifeq ($(BR2_sparc64),y)
+LIBVIPS_CXXFLAGS := $(filter-out -Os,$(TARGET_CXXFLAGS))
+LIBVIPS_CXXFLAGS += -O2
+else
+LIBVIPS_CXXFLAGS := $(TARGET_CFLAGS)
+endif
+LIBVIPS_CONF_ENV += CXXFLAGS="$(LIBVIPS_CFLAGS)"
+
LIBVIPS_CONF_OPTS = \
--disable-introspection \
--without-dmalloc \
--
1.7.10.4
More information about the buildroot
mailing list