Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1510354imm; Thu, 12 Jul 2018 03:13:18 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdoBDXZuk3fkCH7pCECHOV8XAADrUmmZxuAot8yPnOdx83gDdesGPpK0ezKVW1cZ8CyH8fP X-Received: by 2002:a17:902:b944:: with SMTP id h4-v6mr1535972pls.157.1531390397991; Thu, 12 Jul 2018 03:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531390397; cv=none; d=google.com; s=arc-20160816; b=o0VVRGvzi8805HUGv6zgcg6o4D3PbhixVK6gFZxt1nYEpc5PvEbJShu1Mjm067cVgJ 87ty/631DI4AxykkeVHPjpB3KdkjprirC8t6Y7KQeCutGvfh+UtnYaC9u2+cfrUcstSC Ssx5lGUA/5DfnPx6JS/CozdlXRXMZcm7fgGdJIdRcG+ENfmgtHbz1mFcuOGiKJGYLHXR ynJ5IMD3Yh8Xg86PWkDubpmm2y7HS5syuRSdI2vCCxsIZOs6sw7cs82pP7wIm5BQefw/ 5gGuxuewO0AXqWT3o96VdxfvJhXVXdAiXAOnEpaYzqZmiH1f7dkp88FZbUhD8j9Aandx l7Dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=k/ssaWK2LvvKS+vEBz9k1+ITXg9tIowGqSGWU+aOESE=; b=ci8Dg1/iten1cxxzttDZcvEoEzGXpArarv9BaLqNLo0HsMx8o9Ee8Q8xTH7FnjIgWl AcuJs4oFztPGb/C8Wpm8ihHia9Fwbl+vj3ezhNl/g8WNDjO2YJBNOvd33lU4siAu+FPW 9JXUc6BhAdMDTuErnWexj9RRWXkPFaA3QhcPfbbs9Td9DOFcRDYkvJFfkV3RIMBuMHpl WlMAOeKEqS4ZBP1TS2HZfx/NFXOWWx1uvXM7bGqK1QPJNejpegJ/ZdLG/TWMKlvDTM2Y wzDMirlgnaCekBbRZi/avBSnoe7FL6u8nzfSHJYHZE4o/q6+Fwq3FCLnMtYpR8PB16uo 2sKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=DxDnMz9l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4-v6si23388669pfk.361.2018.07.12.03.13.02; Thu, 12 Jul 2018 03:13:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=DxDnMz9l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726782AbeGLKVF (ORCPT + 99 others); Thu, 12 Jul 2018 06:21:05 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:64331 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbeGLKVF (ORCPT ); Thu, 12 Jul 2018 06:21:05 -0400 Received: from mail-ua0-f177.google.com (mail-ua0-f177.google.com [209.85.217.177]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w6CABw6Z031926; Thu, 12 Jul 2018 19:11:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w6CABw6Z031926 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1531390319; bh=k/ssaWK2LvvKS+vEBz9k1+ITXg9tIowGqSGWU+aOESE=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=DxDnMz9l0PGm12/u7WkL+Hs2xyTWOBt+R4h42X6pdfRuEtuXXnbjDmMkrCYtsWd3h 300fI0uGaKf1TqL7m5n6RH2pj1Upy7pbssv7vJ4Q2/rqV8FXX7qugWRh6u1Ue7FIZg WywFtvhkABDfXInhXkqkdTMPkSnb49jT6vZtrXPbr8KA/SQ5TNe/otcgl1/23QRU0C TU+yA8XK4eG4WP0MIBt/eXjrZCjc6W09bIlyvQAKQOJxpm7uQIDEuYdXFXkyIs4o03 PoK5N66EBHfVXIVGT1gmwDujuX3rio6VZHyB8n5xNbFo0bN/f0h2JmZbB+uJJd9PXA waV9Opsis48xw== X-Nifty-SrcIP: [209.85.217.177] Received: by mail-ua0-f177.google.com with SMTP id k8-v6so2668902uaq.12; Thu, 12 Jul 2018 03:11:59 -0700 (PDT) X-Gm-Message-State: AOUpUlH+zJZd80Z2i+txwIYnJA3tZpLuuawHwow9ONGZ7FM1JTgq+NRe JAHpMTpAfmcLpOUJSZ38qjvHZ/lXvD3gbVoAEYk= X-Received: by 2002:ab0:e3:: with SMTP id 90-v6mr874227uaj.52.1531390318288; Thu, 12 Jul 2018 03:11:58 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab0:3308:0:0:0:0:0 with HTTP; Thu, 12 Jul 2018 03:11:17 -0700 (PDT) In-Reply-To: <20180710004602.21599-8-labbott@redhat.com> References: <20180710004602.21599-1-labbott@redhat.com> <20180710004602.21599-8-labbott@redhat.com> From: Masahiro Yamada Date: Thu, 12 Jul 2018 19:11:17 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCHv2 7/7] Kbuild: Use HOST*FLAGS options from the command line To: Laura Abbott Cc: Josh Poimboeuf , Jiri Olsa , Linux Kbuild mailing list , Linux Kernel Mailing List , Robin Jarry , Jonathan Corbet , "open list:DOCUMENTATION" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-07-10 9:46 GMT+09:00 Laura Abbott : > > Now that we have the rename in place, reuse the HOST*FLAGS options as > something that can be set from the command line and included with the > rest of the flags. > > Signed-off-by: Laura Abbott > --- > v2: Use the correct name for HOSTLDLIBS, update documentation. > --- > Documentation/kbuild/kbuild.txt | 16 ++++++++++++++++ > Makefile | 9 +++++---- > 2 files changed, 21 insertions(+), 4 deletions(-) > > +HOSTLDFLAGS > +-------------------------------------------------- > +Additional flags to be passed to $(HOSTLD) when building host programs. Strictly speaking, $(CC) or $(CXX) is used when linking host programs. See this. https://github.com/torvalds/linux/blob/v4.17/scripts/Makefile.host#L95 https://github.com/torvalds/linux/blob/v4.17/scripts/Makefile.host#L112 In fact, there is no definition of 'HOSTLD' in the top Makefile. I will reword it to: HOSTLDFLAGS -------------------------------------------------- Additional flags to be passed when linking host programs. I will also move this hunk up after LDFLAGS_MODULE. -- Best Regards Masahiro Yamada