lkml.org 
[lkml]   [2016]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] objtool: Support CROSS_COMPILE
Hi Josh,

Just a couple of quick comments ...

On Wed, 2 Mar 2016 18:39:37 -0600 Josh Poimboeuf <jpoimboe@redhat.com> wrote:
>
> diff --git a/tools/objtool/Makefile b/tools/objtool/Makefile
> index c4f0713..e4a6bd5 100644
> --- a/tools/objtool/Makefile
> +++ b/tools/objtool/Makefile

I was wondering if this would be more appropriate in scripts/objtool
since it is used during the building of the kernel. Or does it have a
wider use?

> @@ -7,13 +7,19 @@ ARCH := x86
> endif
> endif
>
> +# always use the host compiler
> +CC = gcc

We have HOSTCC with its associated HOSTCFLAGS etc ... I am not sure if
that is more appropriate (but it does take care of people using clang).

--
Cheers,
Stephen Rothwell

\
 
 \ /
  Last update: 2016-03-03 04:21    [W:0.089 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site