]> code.ossystems Code Review - openembedded-core.git/commit
gmp: Fix wrong detection of -march flag
authorKhem Raj <raj.khem@gmail.com>
Fri, 12 Aug 2016 18:10:22 +0000 (11:10 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 17 Aug 2016 09:35:08 +0000 (10:35 +0100)
commit51caeccfc5b18b59deac5005e0059a414cbbed32
tree1f6c14d66009fa748d67de754032a4d1ede07dae
parentc91898b07465fdd5f3629babb7ff9226454de24e
gmp: Fix wrong detection of -march flag

Configure detects -march flag based upon target
triplet, it wrongly passes -march=armv4 for all
arm, this is unearthed when compiling with clang
since it errors out with flags like

/tmp/kraj01/a-0c2038.s:27: Error: selected processor does not support `bx r0' in ARM mode

since it does not pass --fix-v4bx along with
-march=armv4, which does not happen with gcc
toolchain since this flag is passed impicitly hence
this error was indetected

Fixed thusly

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-support/gmp/gmp-6.1.1/0001-confiure.ac-Believe-the-cflags-from-environment.patch [new file with mode: 0644]
meta/recipes-support/gmp/gmp_6.1.1.bb