Author: nbd
Date: 2015-09-21 19:40:44 +0200 (Mon, 21 Sep 2015)
New Revision: 47012

Modified:
   trunk/toolchain/musl/common.mk
Log:
musl: fix build on sh3

musl fails to build when compiled with gcc on sh3 (GCC target/#67260).
Work it around.

Signed-off-by: Zoltan HERPAI <[email protected]>

Modified: trunk/toolchain/musl/common.mk
===================================================================
--- trunk/toolchain/musl/common.mk      2015-09-21 17:19:08 UTC (rev 47011)
+++ trunk/toolchain/musl/common.mk      2015-09-21 17:40:44 UTC (rev 47012)
@@ -23,6 +23,12 @@
 include $(INCLUDE_DIR)/toolchain-build.mk
 include $(INCLUDE_DIR)/hardening.mk
 
+# Please see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67260
+ifeq ($(CONFIG_sh3),y)
+TARGET_CFLAGS+= \
+       -fno-optimize-sibling-calls
+endif
+
 MUSL_CONFIGURE:= \
        $(TARGET_CONFIGURE_OPTS) \
        CFLAGS="$(TARGET_CFLAGS)" \
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to