From patchwork Tue Mar 21 18:13:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stijn Tintel X-Patchwork-Id: 741690 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vngvF69cBz9s7R for ; Wed, 22 Mar 2017 05:14:33 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oeXBwe1m"; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=linux-ipv6.be header.i=@linux-ipv6.be header.b="i0W2uZgf"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=mUZQo3GAYv79upl+wlvShiMM2JpOwryVL9swhjMPcqU=; b=oeXBwe1muUPSlx 06zWbQfWRcByTvoHpfj55C4sVzV4T4K+IUZ30OQ62813SS3JeXadC9NobazzrE6eoS/Cf+pMS/pI3 m5IiK8qinS18o7RJo17tY78PvJMBx9vWfHJ+TzLOxkptTdQs96xZzNCfRkOPjTPnPVj/UfIBJt1Uy wXNHyCG5/wlGPoQ2mN3lQEvU8r83Q6R+FJ4bIoMMTaKnLSslrg4zleCnQOjcmo4S7CTVFd/JvPUoi flwYyK/3vqj5MeCqRk4O5wikSKW6HxevhHvBdxFIjTBONXNAKFVvMK6JbHICLb+X0seZmyrIrAxVu qoInh4TfU5hl/nWwZOzA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cqOIa-00036s-4U; Tue, 21 Mar 2017 18:14:24 +0000 Received: from mail.tintel.eu ([2a00:c78:1:1::25:1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqOIV-00034E-Px for lede-dev@lists.infradead.org; Tue, 21 Mar 2017 18:14:21 +0000 Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id E437F2A45BE for ; Tue, 21 Mar 2017 19:13:53 +0100 (CET) Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id fW6BrS5eSG2v for ; Tue, 21 Mar 2017 19:13:53 +0100 (CET) Received: from localhost (localhost [IPv6:::1]) by mail.tintel.eu (Postfix) with ESMTP id 352862A45BF for ; Tue, 21 Mar 2017 19:13:53 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.tintel.eu 352862A45BF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-ipv6.be; s=502B7754-045F-11E5-BBC5-64595FD46BE8; t=1490120033; bh=BIdOQ80E804e0Y5S8XVQxlGwDBgK3TqOYZvN9D6KTM0=; h=From:To:Subject:Date:Message-Id; b=i0W2uZgffr7VIXV/UE/Iz5OY0cciCV2rwLmBmw1/Nvgla1lBI3XLd3crCE6pN0qhQ vbvrUCbbTxL8zXU0LXE3ly3SFkA6L+OSsTkR2P9awRN3fQ2VuJZ8vH7EYJGz5KzHi9 AKaOHTWVnHwMMRNHKh/tr61vkcwfAhfvLfFX3AXc= X-Virus-Scanned: amavisd-new at mail.tintel.eu Received: from mail.tintel.eu ([IPv6:::1]) by localhost (mail.tintel.eu [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id P-yQ6mXn5xQ7 for ; Tue, 21 Mar 2017 19:13:53 +0100 (CET) Received: from taz (ptr-7svjs16ro2la49su8rr.18120a2.ip6.access.telenet.be [IPv6:2a02:1811:406:dc00:6252:be63:3dda:a7e7]) (Authenticated sender: stijn@linux-ipv6.be) by mail.tintel.eu (Postfix) with ESMTPSA id E75072A45BE for ; Tue, 21 Mar 2017 19:13:51 +0100 (CET) Received: by taz (sSMTP sendmail emulation); Tue, 21 Mar 2017 19:13:53 +0100 From: Stijn Tintel To: lede-dev@lists.infradead.org Date: Tue, 21 Mar 2017 19:13:53 +0100 Message-Id: <20170321181353.29273-1-stijn@linux-ipv6.be> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170321_111420_153743_1A80120D X-CRM114-Status: UNSURE ( 7.75 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_DKIM_INVALID DKIM-Signature header exists but is not valid Subject: [LEDE-DEV] [PATCH] rules.mk: disable CXX11 ABI with uClibc++ X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org GCC 5.1 introduced a new library ABI to conform to the 2011 C++ standard. This new ABI is enabled by default. This causes compatibility issues between libraries compiled against libstdc++ and libraries compiled against uClibc++, as the latter doesn't support this new ABI. Solve this by disabling the _GLIBCXX_USE_CXX11_ABI macro when uClibc++ is selected as the preferred standard C++ library. Signed-off-by: Stijn Tintel --- rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.mk b/rules.mk index ed796a5..bf051b7 100644 --- a/rules.mk +++ b/rules.mk @@ -164,7 +164,7 @@ TARGET_PATH:=$(subst $(space),:,$(filter-out .,$(filter-out ./,$(subst :,$(space TARGET_INIT_PATH:=$(call qstrip,$(CONFIG_TARGET_INIT_PATH)) TARGET_INIT_PATH:=$(if $(TARGET_INIT_PATH),$(TARGET_INIT_PATH),/usr/sbin:/sbin:/usr/bin:/bin) TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) $(call qstrip,$(CONFIG_EXTRA_OPTIMIZATION)) -TARGET_CXXFLAGS = $(TARGET_CFLAGS) +TARGET_CXXFLAGS = $(TARGET_CFLAGS) $(if $(CONFIG_USE_UCLIBCXX), -D_GLIBCXX_USE_CXX11_ABI=0) TARGET_ASFLAGS_DEFAULT = $(TARGET_CFLAGS) TARGET_ASFLAGS = $(TARGET_ASFLAGS_DEFAULT) TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include