]> git.ipfire.org Git - thirdparty/grub.git/commit
configure: force o32 ABI on MIPS
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 13 Oct 2015 22:39:15 +0000 (00:39 +0200)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 13 Oct 2015 22:39:15 +0000 (00:39 +0200)
commitbe25d92196fe31e307ac0b8996ba7f059332ffe3
tree79f00ebaa33f21ce8ee2204e330a1daa702411a6
parenta01ab69848257a3df705e524c4acafe795e05cc9
configure: force o32 ABI on MIPS

GRUB code expects O32 or N32. N32 is less tested than O32, so we prefer to
compile with O32. Some systems (e.g. GNU Guix) default to using newer
n64 or n32 ABI. Try to find suitable options to force o32.

For GCC this is simply -mabi=32. While clang supports this option as well,
o32 ABI is valid for MIPS target and n32/64 ABI are valid for MIPS64 target
only, so use "-target mips/mipsel -mabi=32".

Reported-By: Mark H Weaver <mhw@netris.org>
Also-By: Mark H Weaver <mhw@netris.org>
configure.ac