diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-24 10:07:09 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2020-08-24 10:07:09 +0200 |
commit | 115b686aee1b9de064d3b5efb6bfeae90459b269 (patch) | |
tree | cbc38cbed85ae5dd1522aaf7bf3c16efac0f85e2 | |
parent | d8ee7f62658583b63e2acde26824e35ed7e4c3b2 (diff) | |
download | OSELAS.Toolchain-115b686aee1b9de064d3b5efb6bfeae90459b269.tar.gz OSELAS.Toolchain-115b686aee1b9de064d3b5efb6bfeae90459b269.tar.xz |
glibc: extend mips hack to handle 64bit as well
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | patches/glibc-2.31-29-gde371d1581f3/0200-Hack-around-mips-args-to-host-gcc.patch | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/patches/glibc-2.31-29-gde371d1581f3/0200-Hack-around-mips-args-to-host-gcc.patch b/patches/glibc-2.31-29-gde371d1581f3/0200-Hack-around-mips-args-to-host-gcc.patch index 5cc5c41..b58996d 100644 --- a/patches/glibc-2.31-29-gde371d1581f3/0200-Hack-around-mips-args-to-host-gcc.patch +++ b/patches/glibc-2.31-29-gde371d1581f3/0200-Hack-around-mips-args-to-host-gcc.patch @@ -10,9 +10,12 @@ header extraction from the glibc, by not passing mips specific flags to the HOST compiler. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> +[mol: handle mips64 as well] +Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> --- - sysdeps/mips/mips32/Makefile | 4 ++++ - 1 file changed, 4 insertions(+) + sysdeps/mips/mips32/Makefile | 4 ++++ + sysdeps/mips/mips64/n64/Makefile | 4 ++++ + 2 files changed, 8 insertions(+) diff --git a/sysdeps/mips/mips32/Makefile b/sysdeps/mips/mips32/Makefile index dec0b024c3a8..dde2ca6bce1d 100644 @@ -26,3 +29,18 @@ index dec0b024c3a8..dde2ca6bce1d 100644 +else +CC += -D_MIPS_SZPTR=32 +endif +diff --git a/sysdeps/mips/mips64/n64/Makefile b/sysdeps/mips/mips64/n64/Makefile +index a823f32b53d3..f4112f19a79a 100644 +--- a/sysdeps/mips/mips64/n64/Makefile ++++ b/sysdeps/mips/mips64/n64/Makefile +@@ -1,6 +1,10 @@ + # `long double' is a distinct type we support. + long-double-fcts = yes + ++ifeq ($(filter -DBOOTSTRAP_GCC,$(CC)),) + ifeq ($(filter -mabi=64,$(CC)),) + CC += -mabi=64 + endif ++else ++CC += -D_MIPS_SZPTR=64 ++endif |