summaryrefslogtreecommitdiff
path: root/binary/linux-gnu/build-gcc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-11 16:24:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-11 16:24:16 +0200
commit5bc5025a0af60e0147511726c608adf13b79ba71 (patch)
treee0fe4460e8bcaa72a1191989f89b2df8d3fdf730 /binary/linux-gnu/build-gcc
parent6fe7fc56873b27deef74bc9dc36adf86af4fd79b (diff)
Update Linux binary build
Diffstat (limited to 'binary/linux-gnu/build-gcc')
-rwxr-xr-xbinary/linux-gnu/build-gcc13
1 files changed, 11 insertions, 2 deletions
diff --git a/binary/linux-gnu/build-gcc b/binary/linux-gnu/build-gcc
index 75131e1..0f4815d 100755
--- a/binary/linux-gnu/build-gcc
+++ b/binary/linux-gnu/build-gcc
@@ -12,7 +12,7 @@ function error ()
echo "$*" 1>&2
}
-arhc=x86_64-linux-gnu
+arch=x86_64-linux-gnu
rebuild=n
while [ $# -gt 0 ]; do
@@ -44,6 +44,11 @@ if [ $rebuild = y ]; then
rm -rf binutils-build/*
rm -rf gcc-build/*
rm -rf /$arch/*
+
+ if [ $arch = "x86_64-linux-gnu" ]; then
+ mkdir /$arch/lib
+ ln -s lib /$arch/lib64
+ fi
fi
# Build binutils
@@ -60,7 +65,7 @@ cd ..
# Remove installed binutils libraries.
#
-rm -r /$arch/lib /$arch/include
+rm -rf /$arch/lib/* /$arch/include/*
# Build gcc
#
@@ -75,3 +80,7 @@ make install
make -C $arch/libstdc++-v3 install-strip
cd ..
+
+# Clean up arch-prefixed g++, etc.
+#
+rm -f /$arch/bin/$arch-*