From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_PASS,USER_AGENT_NEOMUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C1670C04E53 for ; Wed, 15 May 2019 15:18:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9ABC720862 for ; Wed, 15 May 2019 15:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727917AbfEOPSz (ORCPT ); Wed, 15 May 2019 11:18:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51620 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfEOPSy (ORCPT ); Wed, 15 May 2019 11:18:54 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C13E830842A2; Wed, 15 May 2019 15:18:54 +0000 (UTC) Received: from treble (ovpn-123-166.rdu2.redhat.com [10.10.123.166]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4DBA75C1A3; Wed, 15 May 2019 15:18:53 +0000 (UTC) Date: Wed, 15 May 2019 10:18:50 -0500 From: Josh Poimboeuf To: Nathan Chancellor Cc: Peter Zijlstra , Nick Desaulniers , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool: Allow AR to be overridden with HOSTAR Message-ID: <20190515151850.g2syltlev4fa7tud@treble> References: <20190514224047.28505-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190514224047.28505-1-natechancellor@gmail.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 15 May 2019 15:18:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 14, 2019 at 03:40:47PM -0700, Nathan Chancellor wrote: > Currently, this Makefile hardcodes GNU ar, meaning that if it is not > available, there is no way to supply a different one and the build will > fail. > > $ make AR=llvm-ar CC=clang LD=ld.lld HOSTAR=llvm-ar HOSTCC=clang \ > HOSTLD=ld.lld HOSTLDFLAGS=-fuse-ld=lld defconfig modules_prepare > ... > AR /out/tools/objtool/libsubcmd.a > /bin/sh: 1: ar: not found > ... > > Follow the logic of HOST{CC,LD} and allow the user to specify a > different ar tool via HOSTAR (which is used elsewhere in other > tools/ Makefiles). > > Link: https://github.com/ClangBuiltLinux/linux/issues/481 > Signed-off-by: Nathan Chancellor Thanks Nathan. I'll send it along to the tip tree. -- Josh