From patchwork Wed Apr 23 22:14:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 342019 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 36EA51400DB for ; Thu, 24 Apr 2014 08:15:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 967958B28B; Wed, 23 Apr 2014 22:15:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h0wxcc8MLShI; Wed, 23 Apr 2014 22:14:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id A3F308B364; Wed, 23 Apr 2014 22:14:53 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 3A4C61BFA4B for ; Wed, 23 Apr 2014 22:14:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 35AA58B453 for ; Wed, 23 Apr 2014 22:14:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dnG8M4xcrUuG for ; Wed, 23 Apr 2014 22:14:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (top.free-electrons.com [176.31.233.9]) by whitealder.osuosl.org (Postfix) with ESMTP id 7CB2B8B3D8 for ; Wed, 23 Apr 2014 22:14:42 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 12CC57F6; Thu, 24 Apr 2014 00:14:42 +0200 (CEST) Received: from localhost (AToulouse-651-1-5-84.w92-149.abo.wanadoo.fr [92.149.60.84]) by mail.free-electrons.com (Postfix) with ESMTPSA id BDCA371D; Thu, 24 Apr 2014 00:14:41 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Thu, 24 Apr 2014 00:14:32 +0200 Message-Id: <1398291272-17591-9-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.9.2 In-Reply-To: <1398291272-17591-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1398291272-17591-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [RFCv1 8/8] package/gcc: disable libsanitizer for uClibc and musl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net From: Gustavo Zacarias libsanitizer requires wordexp() support which we lack in our current default uClibc configurations (and it's fat & big). Hence disable it when the toolchain is uClibc-based. It only affects gcc 4.9+ since it's default on now for supported platforms. Another build issue also affects libsanitizer on musl toolchains, even with previous versions of gcc such as 4.8.x, so we disable it as well. [Thomas: add the musl side of things.] Signed-off-by: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- package/gcc/gcc.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index dff6dce..53c5174 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -125,6 +125,12 @@ ifneq ($(BR2_TOOLCHAIN_BUILDROOT_WCHAR),y) HOST_GCC_COMMON_CONF_OPT += --disable-libquadmath endif +# libsanitizer requires wordexp, not in default uClibc config. Also +# doesn't build properly with musl. +ifeq ($(BR2_TOOLCHAIN_BUILDROOT_UCLIBC)$(BR2_TOOLCHAIN_BUILDROOT_MUSL),y) +HOST_GCC_COMMON_CONF_OPT += --disable-libsanitizer +endif + ifeq ($(BR2_GCC_ENABLE_TLS),y) HOST_GCC_COMMON_CONF_OPT += --enable-tls else