commit 1abc38d6f5d72d7bf263f0015d943c70a904be8a parent f551ac677063f2ce5291bcb01ef8ea276c9980e8 Author: Cem Keylan <cem@ckyln.com> Date: Sat, 23 May 2020 17:24:20 +0300 gcc: POSIX sed Diffstat:
M | core/gcc/build | | | 10 | ++++++++-- |
M | core/gcc/message | | | 2 | +- |
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/core/gcc/build b/core/gcc/build @@ -1,12 +1,18 @@ #!/bin/sh -e +sed_i() { + for file; do :; done + sed "$@" > _ + cat _ > "$file"; rm -f _ +} + # Make sure gmp is built with generic options. cp gcc/gmp/configfsf.guess gcc/gmp/config.guess cp gcc/gmp/configfsf.sub gcc/gmp/config.sub # Use lib not lib64 by default. -sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 -sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h +sed_i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 +sed_i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h # Build must happen outside of gcc source. mkdir -p gcc-build diff --git a/core/gcc/message b/core/gcc/message @@ -4,7 +4,7 @@ A bug in GCC 10.1.0 causes kernels built with GCC 10 to kernel panic in the second boot stage. This issue can be resolved by applying the following patch. -https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/patch/?id=f670269a42bfdd2c83a1118cc3d1b475547eac22 +https://dl.carbslinux.org/distfiles/linux-gcc-10-bootfix.patch You can also visit https://carbslinux.org for a link to the patch.