summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/guile/guile.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/guile/guile.mk b/package/guile/guile.mk
index ca54a4d77f..88c74143bf 100644
--- a/package/guile/guile.mk
+++ b/package/guile/guile.mk
@@ -32,6 +32,11 @@ ifeq ($(BR2_STATIC_LIBS),y)
GUILE_CFLAGS += -DGC_NO_DLOPEN
endif
+# Triggers assembler error with -Os
+ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_ARM)$(BR2_OPTIMIZE_S),yy)
+GUILE_CFLAGS += -O2
+endif
+
# It can use readline, but on the condition that it was build against
# ncurses. If both aren't present disable readline support since the
# host readline/ncurses support can poison the build.
OpenPOWER on IntegriCloud