From patchwork Wed Apr 8 00:52:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 459075 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 875651401DC for ; Wed, 8 Apr 2015 10:52:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id EABD194D40; Wed, 8 Apr 2015 00:52:29 +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 eeLwtjSasoqO; Wed, 8 Apr 2015 00:52:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 8989E94D1D; Wed, 8 Apr 2015 00:52:28 +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 98C1B1C251E for ; Wed, 8 Apr 2015 00:52:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 943CA91138 for ; Wed, 8 Apr 2015 00:52:27 +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 SEunNkb5s7tI for ; Wed, 8 Apr 2015 00:52:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from conuserg011-v.nifty.com (conuserg011.nifty.com [202.248.44.37]) by whitealder.osuosl.org (Postfix) with ESMTPS id A89969110B for ; Wed, 8 Apr 2015 00:52:26 +0000 (UTC) Received: from beagle.diag.org (KD106154041239.au-net.ne.jp [106.154.41.239]) (authenticated) by conuserg011-v.nifty.com with ESMTP id t380qJXa014448 for ; Wed, 8 Apr 2015 09:52:23 +0900 X-Nifty-SrcIP: [106.154.41.239] From: Masahiro Yamada To: buildroot@busybox.net Date: Wed, 8 Apr 2015 09:52:30 +0900 Message-Id: <1428454350-30186-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 Subject: [Buildroot] [PATCH] Makefile: fix HOSTFC definition 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" "echo" always succeeds, "which g77 || type -p g77 || echo gfortran" is never run. Signed-off-by: Masahiro Yamada Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9db52a8..8f4f87c 100644 --- a/Makefile +++ b/Makefile @@ -251,7 +251,7 @@ HOSTRANLIB := ranlib endif HOSTAR := $(shell which $(HOSTAR) || type -p $(HOSTAR) || echo ar) HOSTAS := $(shell which $(HOSTAS) || type -p $(HOSTAS) || echo as) -HOSTFC := $(shell which $(HOSTLD) || type -p $(HOSTLD) || echo || which g77 || type -p g77 || echo gfortran) +HOSTFC := $(shell which $(HOSTFC) || type -p $(HOSTFC) || which g77 || type -p g77 || echo gfortran) HOSTCPP := $(shell which $(HOSTCPP) || type -p $(HOSTCPP) || echo cpp) HOSTLD := $(shell which $(HOSTLD) || type -p $(HOSTLD) || echo ld) HOSTLN := $(shell which $(HOSTLN) || type -p $(HOSTLN) || echo ln)