diff options
author | Cem Keylan <cem@ckyln.com> | 2020-05-23 17:24:20 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-05-23 17:24:20 +0300 |
commit | 1abc38d6f5d72d7bf263f0015d943c70a904be8a (patch) | |
tree | 7e9948cc97b3ad010b2927ec014a3ff487bf7a6a /core/gcc | |
parent | f551ac677063f2ce5291bcb01ef8ea276c9980e8 (diff) | |
download | repository-1abc38d6f5d72d7bf263f0015d943c70a904be8a.tar.gz |
gcc: POSIX sed
Diffstat (limited to 'core/gcc')
-rwxr-xr-x | core/gcc/build | 10 | ||||
-rw-r--r-- | core/gcc/message | 2 |
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. |