toolchain: ARM: Fix option conflict with multiarch
authorBoris Krasnovskiy <borkra@gmail.com>
Thu, 21 Mar 2019 03:00:51 +0000 (23:00 -0400)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 25 Mar 2019 20:19:05 +0000 (21:19 +0100)
commit4cf991bedb4cbf42fd60af52a730bf52461c7161
treecc6ad0cc3a12983f2972c5da5471a0e27a225b34
parent8dcc1087602e2dd606e4f6e81a06aee62cfd4f4c
toolchain: ARM: Fix option conflict with multiarch

This problem exposed when compiling glibc, but applicable across the
board. gcc compiles runtime libraries for all supported architectures,
unless otherwise specified, and later selects applicable library based
-m[arch,cpu,*] options, thus these options should not be passed to gcc
as they break the compilation process.

Signed-off-by: Boris Krasnovskiy <borkra@gmail.com>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
[modified so it only touches ARM - I'm too chicken, changed authors email]
toolchain/gcc/common.mk