From 79315d318c68dc65be6b15a4b15f30ff3436f13c Mon Sep 17 00:00:00 2001 From: Bananymous Date: Tue, 30 May 2023 07:59:41 +0300 Subject: [PATCH] Toolchain: lib gcc is wuild with mcmodel=large --- toolchain/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/toolchain/build.sh b/toolchain/build.sh index ccc5b48a6a..6cdae7da50 100755 --- a/toolchain/build.sh +++ b/toolchain/build.sh @@ -74,7 +74,8 @@ if [ ! -f ${PREFIX}/bin/${TARGET}-g++ ]; then --with-sysroot="$SYSROOT" \ --enable-languages=c,c++ - make -j $(nproc) all-gcc all-target-libgcc + make -j $(nproc) all-gcc + make -j $(nproc) all-target-libgcc CFLAGS_FOR_TARGET='-g -O2 -mcmodel=large -mno-red-zone' make install-gcc install-target-libgcc fi