[PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-16 Thread Josh Poimboeuf
From: Nathan Chancellor 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

Re: [PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-15 Thread Josh Poimboeuf
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 \ >

Re: [PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-15 Thread Mukesh Ojha
On 5/15/2019 4:10 AM, 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

Re: [PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-14 Thread Nick Desaulniers
.On Tue, May 14, 2019 at 3:41 PM 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 \ >

[PATCH] objtool: Allow AR to be overridden with HOSTAR

2019-05-14 Thread Nathan Chancellor
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