aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rwxr-xr-xcore/gcc/build10
-rw-r--r--core/gcc/message2
2 files changed, 9 insertions, 3 deletions
diff --git a/core/gcc/build b/core/gcc/build
index d987706c..34c650a7 100755
--- 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
index 175ae95e..75c12d01 100644
--- 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.