diff options
Diffstat (limited to 'core/gcc/build')
-rwxr-xr-x | core/gcc/build | 10 |
1 files changed, 8 insertions, 2 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 |