diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-24 10:05:23 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-24 10:05:35 +0200 |
commit | 2a322d40c23d4f2c697f561e9c1dfd3bb8d26639 (patch) | |
tree | 0cf5fec7f0888d6a17e4b0cd25e4fb9f18de13d2 /fixup_ptxconfigs.sh | |
parent | 5f734311e4fe963ea41e686b1b7bae5b0ac3260f (diff) | |
download | OSELAS.Toolchain-2a322d40c23d4f2c697f561e9c1dfd3bb8d26639.tar.gz OSELAS.Toolchain-2a322d40c23d4f2c697f561e9c1dfd3bb8d26639.tar.xz |
fixup_ptxconfigs: set -D__mips=1 when building glibc headers on mips
This avoids a lot of error messages like this:
sysdeps/unix/sysv/linux/mips/kernel-features.h:26:5: error: "__mips" is not defined, evaluates to 0 [-Werror=undef]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'fixup_ptxconfigs.sh')
-rwxr-xr-x | fixup_ptxconfigs.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fixup_ptxconfigs.sh b/fixup_ptxconfigs.sh index 5781338..277580d 100755 --- a/fixup_ptxconfigs.sh +++ b/fixup_ptxconfigs.sh @@ -98,7 +98,7 @@ fixup() PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__ARM_EABI__" ;; mips*) - PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32" + PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-DBOOTSTRAP_GCC -D_MIPS_SIM=_ABIO32 -D__mips=1" ;; riscv64*) PTXCONF_GLIBC_HEADERS_FAKE_CROSS="-D__riscv_atomic -D__riscv_xlen=64 -D__riscv_flen=64 -D__riscv_float_abi_double" |