aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcore/gcc/build4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/gcc/build b/core/gcc/build
index ef0e87db..b0a09ddb 100755
--- a/core/gcc/build
+++ b/core/gcc/build
@@ -5,8 +5,8 @@ cp -v gcc/gmp/configfsf.guess gcc/gmp/config.guess
cp -v 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 '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 > t-linux64.bak && mv t-linux64.bak gcc/gcc/config/i386/t-linux64
+sed 's/lib64/lib/' gcc/gcc/config/i386/linux64.h > linux64.h.bak && mv linux64.h.bak gcc/gcc/config/i386/linux64.h
# Build must happen outside of gcc source.
mkdir -p gcc-build