]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc-common: Enable building multiarch mips gcc
authorLei Liu <layliu@gmail.com>
Mon, 11 Nov 2013 04:43:51 +0000 (12:43 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Nov 2013 10:25:19 +0000 (10:25 +0000)
MIPS gcc is not configured with multiarch enabled.  This causes
compiler generates local label with $ prefix, which is specified
in default o32 abi.  It is not recognized as local symbol by n64
assembler, so we get a lot of unexpected external symbols.  We
should configure MIPS gcc with --enable-targets=all, as for other
archs.

Signed-off-by: Lei Liu <lei.liu2@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-common.inc

index 4f691a090cdfeb8f12525891e4e401e24b47a19f..dcb22babdf5cc9478f1eb425690ecbfdf289890a 100644 (file)
@@ -28,6 +28,7 @@ def get_gcc_multiarch_setting(bb, d):
     multiarch_options = {
         "i586":    "--enable-targets=all",
         "powerpc": "--enable-targets=powerpc64",
+        "mips":    "--enable-targets=all",
         "sparc":   "--enable-targets=all",
     }