OSDN Git Service

Avoid accidentally using the host's native 'as' command.
authorAlistair Strachan <alistair.strachan@imgtec.com>
Thu, 5 May 2016 23:29:08 +0000 (16:29 -0700)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 7 Sep 2016 16:19:27 +0000 (00:19 +0800)
commitc348ead1610760e4eed63f0a0ea5dfef5870addd
treef03e75b26cf7822f51b823e7e75b06125da232c3
parent30b95413f49b53037020341655fdb52ee4a96940
Avoid accidentally using the host's native 'as' command.

When invoking clang for the host to assemble .S files, the -B flag
would not be provided, which allowed the host prebuilt clang to
use an 'as' from the native environment. Most of the time this
"just works", but some newer 'as' versions cause problems with
the older prebuilt toolchain, for example by generating
unsupported relocation types.

To avoid this problem, simply use the -B flag to tell clang to
invoke the assembler from the correct prebuilt gcc prefix.

Change-Id: I18ea4f37ae637b652cfd7321c41929f8be075342
Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
core/clang/HOST_x86_common.mk