diff options
Diffstat (limited to 'binary/linux-gnu/build-gcc')
-rwxr-xr-x | binary/linux-gnu/build-gcc | 13 |
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-* |