From patchwork Sat Sep 19 00:22:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zoltan Herpai X-Patchwork-Id: 519616 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 38508140788 for ; Sat, 19 Sep 2015 10:23:14 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 7148D28BDDE; Sat, 19 Sep 2015 02:21:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 104F9284610 for ; Sat, 19 Sep 2015 02:21:19 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 BOGUS_MX=2.1 CL_IP_EQ_FROM_MX=-3.1; rate: -5.5 Received: from trabant.uid0.hu (trabant.uid0.hu [81.0.124.200]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 19 Sep 2015 02:21:18 +0200 (CEST) Received: from [81.0.124.211] (port=50398 helo=dizelgigant.uid0.hu) by trabant.uid0.hu with esmtp (Exim 4.80 #2 (Debian)) id 1Zd5uo-0001za-GU from ; Sat, 19 Sep 2015 02:22:06 +0200 Received: by dizelgigant.uid0.hu (Postfix, from userid 1000) id 3653AC7C; Sat, 19 Sep 2015 02:22:30 +0200 (CEST) From: Zoltan HERPAI To: openwrt-devel@lists.openwrt.org Date: Sat, 19 Sep 2015 02:22:25 +0200 Message-Id: <1442622145-17826-1-git-send-email-wigyori@uid0.hu> X-Mailer: git-send-email 1.7.10.4 Subject: [OpenWrt-Devel] [PATCHv2] musl: fix build on sh3 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" musl fails to build when compiled with gcc on sh3 (GCC target/#67260). Work it around. Signed-off-by: Zoltan HERPAI --- toolchain/musl/common.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/toolchain/musl/common.mk b/toolchain/musl/common.mk index 82c1543..3045c63 100644 --- a/toolchain/musl/common.mk +++ b/toolchain/musl/common.mk @@ -23,6 +23,12 @@ HOST_BUILD_DIR:=$(BUILD_DIR_TOOLCHAIN)/$(PKG_NAME)-$(PKG_VERSION) 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)" \