Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | It fails to build crash for mips with error: |
| 4 | |
| 5 | | mips-wrs-linux-gcc: error: unrecognized command line option '-m32' |
| 6 | | Makefile:291: recipe for target 'make_build_data' failed |
| 7 | |
| 8 | So remove the unrecognized option '-m32' for mips. |
| 9 | |
| 10 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
| 11 | --- |
| 12 | diff --git a/configure.c b/configure.c |
| 13 | index cf1973b..71e97b3 100644 |
| 14 | --- a/configure.c |
| 15 | +++ b/configure.c |
| 16 | @@ -148,7 +148,7 @@ void add_extra_lib(char *); |
| 17 | #define TARGET_CFLAGS_PPC64_ON_X86_64 "TARGET_CFLAGS=" |
| 18 | #define TARGET_CFLAGS_MIPS "TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64" |
| 19 | #define TARGET_CFLAGS_MIPS_ON_X86 "TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64" |
| 20 | -#define TARGET_CFLAGS_MIPS_ON_X86_64 "TARGET_CFLAGS=-m32 -D_FILE_OFFSET_BITS=64" |
| 21 | +#define TARGET_CFLAGS_MIPS_ON_X86_64 "TARGET_CFLAGS=-D_FILE_OFFSET_BITS=64" |
| 22 | |
| 23 | #define GDB_TARGET_DEFAULT "GDB_CONF_FLAGS=" |
| 24 | #define GDB_TARGET_ARM_ON_X86 "GDB_CONF_FLAGS=--target=arm-elf-linux" |
| 25 | @@ -158,7 +158,7 @@ void add_extra_lib(char *); |
| 26 | #define GDB_TARGET_ARM64_ON_X86_64 "GDB_CONF_FLAGS=--target=aarch64-elf-linux" /* TBD */ |
| 27 | #define GDB_TARGET_PPC64_ON_X86_64 "GDB_CONF_FLAGS=--target=powerpc64le-unknown-linux-gnu" |
| 28 | #define GDB_TARGET_MIPS_ON_X86 "GDB_CONF_FLAGS=--target=mipsel-elf-linux" |
| 29 | -#define GDB_TARGET_MIPS_ON_X86_64 "GDB_CONF_FLAGS=--target=mipsel-elf-linux CFLAGS=-m32" |
| 30 | +#define GDB_TARGET_MIPS_ON_X86_64 "GDB_CONF_FLAGS=--target=mipsel-elf-linux" |
| 31 | |
| 32 | /* |
| 33 | * The original plan was to allow the use of a particular version |