From patchwork Wed Oct 14 19:40:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1382329 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=CSZ1L4t7; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CBN784CGjz9sTs for ; Thu, 15 Oct 2020 06:40:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B109A2E540; Wed, 14 Oct 2020 19:40:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Nl5tz3h9enJ; Wed, 14 Oct 2020 19:40:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id D6F352E548; Wed, 14 Oct 2020 19:40:22 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 7FD621BF4D6 for ; Wed, 14 Oct 2020 19:40:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 741BD881C3 for ; Wed, 14 Oct 2020 19:40:20 +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 q3NL3+bo7uvd for ; Wed, 14 Oct 2020 19:40:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ej1-f68.google.com (mail-ej1-f68.google.com [209.85.218.68]) by whitealder.osuosl.org (Postfix) with ESMTPS id 88939881AC for ; Wed, 14 Oct 2020 19:40:17 +0000 (UTC) Received: by mail-ej1-f68.google.com with SMTP id dt13so158579ejb.12 for ; Wed, 14 Oct 2020 12:40:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=jOuG6MTU7KNx+R0OdTwlE1MLHclDbbB68TbYhZfUDbI=; b=CSZ1L4t7gWEJClIXonrB0ZFx6hCRqLVvgVC75+7uPB9wYYh0QBj74XCwnISS0FEIzL mDTFKke6m0vW7zKmUoA7bFNPFj836aIIueCur1vLVieaj3wVamxOgXyl1hvrxbn+lZIc QZEPaL1FqOsvWnTUnMJuN8ggyLRA+X7kby6MYtpHX5WAe+F8mM0KZnWvlPnGKNINvCqC MUi1veVvfBUm3JjLJ3aj5U8/woKSScgxyDOovtrxdqZ8e9DHSOOrDZMsb7OzsTJZ0AW2 +XtMMrXZL6irnP1llIM17UJ7a6wZ4j9moEXiBtXt0ykXE+gWHdwPz0UHXK4KfgezTyFZ glPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=jOuG6MTU7KNx+R0OdTwlE1MLHclDbbB68TbYhZfUDbI=; b=XgKfw/JlqUM9OaMZDBoMJyDCd5VeY7/6h4SPqlCCzxmyP5wR5pKvquWhH26Ip3y61/ FJrMmYNGnboDmbd93ZUAbULApfnkm3WXujHuvwJAmIHdcD3OljTSMfZb37HnyBim5WZf JGNuD52GIj6yaQW25hhneLybzBhG/flsyYHdfzUHViBj2dyeSMIHzps//x79ssTnVd7P 0yg6ek7Lk4LO1hw3wOofMrOhtTDmelbWYjL5xvNyn0gpfvyNLvPaJc81TNl6+LzWTXEs BliZ+Mn77YXDSbYjgUmaKyvWH16+2ja5vxvIUVpLVWvc9mB+8LPt8Mzw5h8JajZ1CWN5 Z7uw== X-Gm-Message-State: AOAM5316SGGv98Qp0QsJCyU6CYWrbpQn6P5yvmWXwzwspstTJrlpjEFb PVtcRH7M+p3zoMIGtEh2BzLYw1+WRCiIRA== X-Google-Smtp-Source: ABdhPJyut3nXD4VqE+gcIl7WTmmlUM0SedfjHLBsoIVBL6MVcLFSet3BtFGb9wJ1FqkgtyL4LWICXg== X-Received: by 2002:a17:906:1e04:: with SMTP id g4mr705747ejj.72.1602704415674; Wed, 14 Oct 2020 12:40:15 -0700 (PDT) Received: from localhost.localdomain (84-114-45-16.cable.dynamic.surfer.at. [84.114.45.16]) by smtp.gmail.com with ESMTPSA id j22sm262612edp.77.2020.10.14.12.40.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 12:40:15 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Wed, 14 Oct 2020 21:40:00 +0200 Message-Id: <20201014194002.9753-2-nolange79@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201014194002.9753-1-nolange79@gmail.com> References: <20201014194002.9753-1-nolange79@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/3] package/gcc: use binutils wrappers for target libs X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Norbert Lange , Romain Naour , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This will use gcc-ar, gcc-nm and gcc-ranlib instead of the normal binutils tools. The difference is that with the wrappers, gcc plugins will be automatically picked up, which might be necessary with some flags. Signed-off-by: Norbert Lange --- package/gcc/gcc.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/gcc/gcc.mk b/package/gcc/gcc.mk index 114c2887a0..9be155c3ff 100644 --- a/package/gcc/gcc.mk +++ b/package/gcc/gcc.mk @@ -99,6 +99,7 @@ GCC_COMMON_TARGET_CFLAGS += -Wno-error endif # Propagate options used for target software building to GCC target libs +HOST_GCC_COMMON_CONF_ENV += AR_FOR_TARGET=gcc-ar NM_FOR_TARGET=gcc-nm RANLIB_FOR_TARGET=gcc-ranlib HOST_GCC_COMMON_CONF_ENV += CFLAGS_FOR_TARGET="$(GCC_COMMON_TARGET_CFLAGS)" HOST_GCC_COMMON_CONF_ENV += CXXFLAGS_FOR_TARGET="$(GCC_COMMON_TARGET_CXXFLAGS)"