From patchwork Wed Nov 4 07:34:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Noonan X-Patchwork-Id: 539766 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 65F0114090A for ; Wed, 4 Nov 2015 18:40:48 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=uplinklabs_net.20150623.gappssmtp.com header.i=@uplinklabs_net.20150623.gappssmtp.com header.b=bdcUNp0Z; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 82DFE887BA; Wed, 4 Nov 2015 07:40:47 +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 8yq0Ao3jFFM6; Wed, 4 Nov 2015 07:40:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id B95DF887F3; Wed, 4 Nov 2015 07:40:44 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AE0E51C142D for ; Wed, 4 Nov 2015 07:40:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A8C148AAEA for ; Wed, 4 Nov 2015 07:40:43 +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 rQt9TQZD803H for ; Wed, 4 Nov 2015 07:40:41 +0000 (UTC) X-Greylist: delayed 00:06:06 by SQLgrey-1.7.6 Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by hemlock.osuosl.org (Postfix) with ESMTPS id D840F87995 for ; Wed, 4 Nov 2015 07:40:41 +0000 (UTC) Received: by pasz6 with SMTP id z6so46222688pas.2 for ; Tue, 03 Nov 2015 23:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uplinklabs_net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=Dx3A5Zq6sThT7ybH1e+5+dWjBCZ3YIH/AExopihew0o=; b=bdcUNp0ZlJhS/7eeQb7xDcmRM5DKRqfQlYyH1DrBi692W3nrBX68WcDpPPSEVCBlrn KPlqtahWxHgMy58ldgRjL6RR+gW9bVNzRzDjHEy06pmGZYVn2TazUddangrnRliyuQIO uIUBEHHeCpQq49mrEE+e1d+dNKMsE1Npj3btKDSlLJ1YcTKQBrnZxJu3pa+Hx0+rmc7Q IWsqny+Go2/XXLQOUjSNPynBBHoCkBD+D6hUy2vOobzE1U5RvSxpv3BfdueQ6zN4PIGy ozxqwJVZ5WPbIHSsHYgD1N7QnW/kUaOg0pNdIIdoxsRkCaFAy9S5cHqxO0YJN14jMf/3 g3Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Dx3A5Zq6sThT7ybH1e+5+dWjBCZ3YIH/AExopihew0o=; b=Hg9+d79jdLMAceVuiPsn4c+iCgmE8O1m1ass2mM6AHqvBwr74h8grL+8vhvMPe+u5+ NMKYPnRDhtJcsdHdb8wwZ7adV+o5x0jxFn0pcQXroYH4XUfp884Sh4rNZXDdCLL5F5oY ro9FXFJAcMwLg1UoqeAmC8KU1hpoBd7A3WcW50c9uLLz08NwwNEpr6ou5NLw8xCHPBxI ikplS6iY58imnBjCCYXfb1N8tlJetCsaBIlKlhAJJautd0KgYMZugmaaQTFH2igmbly+ 1LztZ2ikMis11ByRE8ocKQWyBo58aHjB+RPvEwHV/z+eFSfgkWI6/cUvyt167dfbXcXH V7UA== X-Gm-Message-State: ALoCoQkmOry7VjMR2xIpVTrLuZeAukxzM3TG9czG10kTZSVE3epy3I3A63UQI1L6GNLiaA9UJEyh X-Received: by 10.68.193.165 with SMTP id hp5mr114065pbc.20.1446622474810; Tue, 03 Nov 2015 23:34:34 -0800 (PST) Received: from steven@uplinklabs.net ([2605:9080:1012:1f21:ec4:7aff:fe6a:4977]) by smtp.gmail.com with ESMTPSA id yg2sm76597pbb.79.2015.11.03.23.34.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 23:34:33 -0800 (PST) Received: by steven@uplinklabs.net (sSMTP sendmail emulation); Tue, 03 Nov 2015 23:34:31 -0800 From: Steven Noonan To: buildroot@buildroot.org Date: Tue, 3 Nov 2015 23:34:27 -0800 Message-Id: <1446622467-21916-1-git-send-email-steven@uplinklabs.net> X-Mailer: git-send-email 2.6.2 Subject: [Buildroot] [PATCH] gcc-final: hard link TARGET-cc -> TARGET-gcc X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Doing a symlink results in incorrect behavior: $ x86_64-buildroot-linux-gnux32-cc --version ccache: error: execv of [...]/x86_64-buildroot-linux-gnux32-cc.br_real.br_real failed: No such file or directory $ x86_64-buildroot-linux-gnux32-gcc --version x86_64-buildroot-linux-gnux32-gcc.br_real (Buildroot 2015.11-git-00965-g8d89653-dirty) 5.2.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Note the double .br_real on the invocation by toolchain-wrapper. Signed-off-by: Steven Noonan Acked-by: Arnout Vandecappelle (Essensium/Mind) --- package/gcc/gcc-final/gcc-final.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/gcc/gcc-final/gcc-final.mk b/package/gcc/gcc-final/gcc-final.mk index 8ac2968..7ccc533 100644 --- a/package/gcc/gcc-final/gcc-final.mk +++ b/package/gcc/gcc-final/gcc-final.mk @@ -91,7 +91,7 @@ HOST_GCC_FINAL_MAKE_OPTS += $(HOST_GCC_COMMON_MAKE_OPTS) # Make sure we have 'cc' define HOST_GCC_FINAL_CREATE_CC_SYMLINKS if [ ! -e $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-cc ]; then \ - ln -snf $(GNU_TARGET_NAME)-gcc \ + cp -l $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-gcc \ $(HOST_DIR)/usr/bin/$(GNU_TARGET_NAME)-cc; \ fi endef