aboutsummaryrefslogtreecommitdiff
path: root/core/gcc
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-24 01:17:11 +0300
committerCem Keylan <cem@ckyln.com>2021-07-24 01:17:11 +0300
commit11a2c4d0dfd730fd077df13158409430341fb765 (patch)
tree449b0fc518f86f6947c170f1cff7ec201dda9fc9 /core/gcc
parentbf26defdd753bc7df80723ee297aa391c562335f (diff)
downloadrepository-11a2c4d0dfd730fd077df13158409430341fb765.tar.gz
gcc: use clinst, clsed
Diffstat (limited to 'core/gcc')
-rwxr-xr-xcore/gcc/build12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/gcc/build b/core/gcc/build
index e3bb1e03..9b62feed 100755
--- a/core/gcc/build
+++ b/core/gcc/build
@@ -2,20 +2,14 @@
sys_arch=${3:-$(uname -m)}
-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
if [ "${sys_arch#i*86}" ]; then
# Do not create lib64 directories
- sed_i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
- sed_i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
+ clsed '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64
+ clsed 's/lib64/lib/' gcc/gcc/config/i386/linux64.h
else
# Apply libssp patch for i686.
(cd gcc; patch -Np1 < ../musl-libssp.patch)
@@ -71,7 +65,7 @@ find "$1" -name libgij.a -exec rm -f {} +
ln -s gcc "$1/usr/bin/cc"
# POSIX compliance.
-install -Dm755 ../c99 "$1/usr/bin/c99"
+clinst -Dm755 ../c99 "$1/usr/bin/c99"
# Symlink for LTO.
{