From patchwork Wed Oct 14 19:39:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1382328 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=FlDx4zSt; 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 4CBN701jxBz9sRK for ; Thu, 15 Oct 2020 06:40:27 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2F9D52E545; Wed, 14 Oct 2020 19:40:22 +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 jw2sGs-ZsHdt; Wed, 14 Oct 2020 19:40:18 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id A36E52E53C; Wed, 14 Oct 2020 19:40:18 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 35E331BF4D6 for ; Wed, 14 Oct 2020 19:40:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2A4C42E532 for ; Wed, 14 Oct 2020 19:40:17 +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 fab3tmEvNIwe for ; Wed, 14 Oct 2020 19:40:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f68.google.com (mail-ed1-f68.google.com [209.85.208.68]) by silver.osuosl.org (Postfix) with ESMTPS id E1E992E53C for ; Wed, 14 Oct 2020 19:40:15 +0000 (UTC) Received: by mail-ed1-f68.google.com with SMTP id i5so682675edr.5 for ; Wed, 14 Oct 2020 12:40:15 -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:mime-version :content-transfer-encoding; bh=/I8siOl6RA4+aF8OxaGBo83AuG9jUkmUK9IRWaibDhA=; b=FlDx4zStf9nGPFNpoxCMQervpsYXR84nQ6GBtleYJx4/VtA6x/ne2UBP6yaXlINSle Y7UOGAZ1rAxhHC2egKijhDors2A1TA2F7vP30Pbc6nb++HnL8TmLfHUVIU8XORcKt8Cs jNdwC64jYuUYeSBUt23+hrVuXqAaOgfPaa6RA64XFMD0STd37tDjdkr7fearIMxfWzQA 7rAtd1vAN+QDN1y6sin0rxcYMAmHNvs8x/eqxkwi4r0CEUNUUsHiYpP5xz0ONKC/hUh+ JCD4DMTAKmpNjf6dwyMb+ZcqjA4jbtsPSHffG11lLofDY9BgDXi/FZdGyP2xoSzGaDuO 8Zdg== 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:mime-version :content-transfer-encoding; bh=/I8siOl6RA4+aF8OxaGBo83AuG9jUkmUK9IRWaibDhA=; b=OrZ45LdiodhKtxNV+yXpY/CbVGXzkSwoq3Q432qOW+iq4MUO/ulK0r3UxWQFTl1TUO CB7sR9NQciwsG0lo2xBrx3os3fki3+sCcumY8YJOF5z8ZSlfbaWTdGeHlQ1NdIEfFssG 3PQzhhbfUaL24g+56dcNLWFVlUvML/1vemOYufrwJFfhiKyYuMEtHY53IFy/BSQ1G/2S d8liCnZSBWwH1SXKe3ke9SnyNV+oaDYZR4HDOj+buP2DV2sKHqQPEyTePLQxzpm3FoTr E1gseJOnp2ksbq6CifCAzuNSCC8+KWUmUjwIFJSVUpEXduZcqT8UJuQw8y7oUZCvHCym gPTg== X-Gm-Message-State: AOAM5323xg1ve08U3lIE+GFOh8i5h1w5WacNFr/VJuUcnRHKeXgjHWdx UCA+Vpk3kftxxQj3PCGn3sqqneNmilMPTA== X-Google-Smtp-Source: ABdhPJzhO1kfTTDJEzbPrkd5YPJ/o0TXfuTCBcZbFXU0OaboGc1ODcVNpDT5CoWyAnLjocQQaOHPfA== X-Received: by 2002:a05:6402:1c1b:: with SMTP id ck27mr599481edb.218.1602704414070; Wed, 14 Oct 2020 12:40:14 -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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 12:40:13 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Wed, 14 Oct 2020 21:39:59 +0200 Message-Id: <20201014194002.9753-1-nolange79@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] package/Makefile.in: use gcc wrappers for binutils tools 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 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. I dont think there are any toolchains still supported that lack those wrappers, so it should be safe to use unconditionally. Otherwise an option needs to be added. Note that binutils added some automatic loading with the 'bfd-plugins' directory (somewhere around 2.28), but the first implementation had issues, and generally depends on correctly setup symlinks (often broken, may point to some other gcc's library). The wrappers always work painless. The original motivation (now ~2 years in use) was to add "-flto -ffat-lto-objects" to both BR2_TARGET_OPTIMIZATION and BR2_TARGET_LDFLAGS, and have target binaries lto optimized. Not all packages will compile with this option, further work could white/blacklist packages (adding -fno-lto to the options). Signed-off-by: Norbert Lange --- package/Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/Makefile.in b/package/Makefile.in index 51f5cbce4f..a03f0304d5 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -198,15 +198,15 @@ TARGET_CROSS = $(HOST_DIR)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)- endif # Define TARGET_xx variables for all common binutils/gcc -TARGET_AR = $(TARGET_CROSS)ar +TARGET_AR = $(TARGET_CROSS)gcc-ar TARGET_AS = $(TARGET_CROSS)as TARGET_CC = $(TARGET_CROSS)gcc TARGET_CPP = $(TARGET_CROSS)cpp TARGET_CXX = $(TARGET_CROSS)g++ TARGET_FC = $(TARGET_CROSS)gfortran TARGET_LD = $(TARGET_CROSS)ld -TARGET_NM = $(TARGET_CROSS)nm -TARGET_RANLIB = $(TARGET_CROSS)ranlib +TARGET_NM = $(TARGET_CROSS)gcc-nm +TARGET_RANLIB = $(TARGET_CROSS)gcc-ranlib TARGET_READELF = $(TARGET_CROSS)readelf TARGET_OBJCOPY = $(TARGET_CROSS)objcopy TARGET_OBJDUMP = $(TARGET_CROSS)objdump 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)" From patchwork Wed Oct 14 19:40:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Norbert Lange X-Patchwork-Id: 1382327 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.137; helo=fraxinus.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=Sag0a7HN; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CBN701k85z9sTr for ; Thu, 15 Oct 2020 06:40:26 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9882A87C52; Wed, 14 Oct 2020 19:40:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Upd6rx4r_Tvx; Wed, 14 Oct 2020 19:40:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2B02387C26; Wed, 14 Oct 2020 19:40:21 +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 D0E421BF4D6 for ; Wed, 14 Oct 2020 19:40:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C67B8881C6 for ; Wed, 14 Oct 2020 19:40:19 +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 eU-HDQroJiSs for ; Wed, 14 Oct 2020 19:40:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by whitealder.osuosl.org (Postfix) with ESMTPS id 33F13881C3 for ; Wed, 14 Oct 2020 19:40:19 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id l24so653673edj.8 for ; Wed, 14 Oct 2020 12:40:19 -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=h1zo1i6WLfrFccHZvQqpjmZq+xP5a7aMB/BW4X+fITY=; b=Sag0a7HNfTjqe9e9mt4TrE2z5GCFjoT6AucgzFQqRlp9/lKfQ0GzT7Eap8GhvBqRgm SSRWC3/vmLx8BbJu9rY+Qv+JRkgjtDmfk/DPXLQBcaRtBxxJ0DYFU3IvTMYPcLXkMNzG gOTz6i24K35yhNN/fpEyhh/IgkX3opr40MLpgon/0mrT37pXX+qzVtv5vDMVQqUPjoPB 1VBFG42rbtwYL+1EKUOyY+/P+qsBaMppzlwWGqk/8t9ZGoJHwnTAcAWL7Q0+9uuQ3CQ5 RJBgoSUqJb9lH0np/Omsd8J1G0vMFTl7v2LPn8ahkmQGmixCTHKtOpgROztVzO4sD+HC KhKQ== 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=h1zo1i6WLfrFccHZvQqpjmZq+xP5a7aMB/BW4X+fITY=; b=FDPuBE9oCEGVfz5wlEOI94ZB/lKQ8woRaErjmRz2LUPKtUmIgHZDhKxHXDagFAP2r1 e9+qV/cK6/pDyvEj9+eNT3B4Nc1+MrSoK9/TqOWUhoJqglOyIwSXiykYK1+qeBuaoBQ0 OPnr06RhHxblwvR4tXlCA4XUWxBk3DHe+8Ht2tkR9uzeHyBLrY1TubWZCsoZYilqv7Zd 0/eNX9qQ1TI5ahUujI/cpl/yA6DVd/HPhaqewmt86eRvv+DP8+8IoqVi8tzcqabAMndY te+Ll004+9toIMTnG5K6gp4VEZ4kYAWDz+UmoqHHurj+0Mt7DvdVy8nzsofW0Avfvizj Ny3g== X-Gm-Message-State: AOAM533nW1FeOIyPl+yhy61Jko48pgpSh989HZGrf2d3H3VcGFgruZiK vtbXi9jx7HDXp9Kn2BIQPeBmhWWqkQS3Vw== X-Google-Smtp-Source: ABdhPJzXnPfc6gYPsiBqIkbEVGpgmUymyIzCsT3lIoor7l1i946xD0tjb5yFaiiOeRQXwszYly7wXg== X-Received: by 2002:a50:ee19:: with SMTP id g25mr620785eds.160.1602704417300; Wed, 14 Oct 2020 12:40:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 12:40:16 -0700 (PDT) From: Norbert Lange To: buildroot@buildroot.org Date: Wed, 14 Oct 2020 21:40:01 +0200 Message-Id: <20201014194002.9753-3-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 3/3] package/busybox: explicitly state binutil paths 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 , Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Pass paths to ar, nm, ranlib binaries. This allows linker-plugins to be used. Signed-off-by: Norbert Lange --- package/busybox/busybox.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 7862beb790..ddac4070d6 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -93,6 +93,9 @@ BUSYBOX_MAKE_ENV += \ endif BUSYBOX_MAKE_OPTS = \ + AR="$(TARGET_AR)" \ + NM="$(TARGET_NM)" \ + RANLIB="$(TARGET_RANLIB)" \ CC="$(TARGET_CC)" \ ARCH=$(KERNEL_ARCH) \ PREFIX="$(TARGET_DIR)" \