summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2010-06-06 00:27:52 +0000
committerBjörn Stenberg <bjorn@haxx.se>2010-06-06 00:27:52 +0000
commit5e412b37578c8766514560ea40f043dfe87d4335 (patch)
tree7b6bae538be8de2e7859ae19c2a295d9707c5971
parent46f267c0e15712e18ec4a9343cf93557ef7d1fa9 (diff)
downloadrockbox-5e412b37578c8766514560ea40f043dfe87d4335.tar.gz
rockbox-5e412b37578c8766514560ea40f043dfe87d4335.tar.bz2
rockbox-5e412b37578c8766514560ea40f043dfe87d4335.zip
Corrected the GMP & MPFR workaround.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26606 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/rockboxdev.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 49f9abb3c0..a4deecbb66 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -159,19 +159,25 @@ build() {
# kludge to avoid having to install GMP and MPFR for new gcc
if test -n "$needs_gmp"; then
+ cd "gcc-$version"
if test ! -d gmp; then
echo "ROCKBOXDEV: Getting GMP"
- getfile "gmp-5.0.1.tar.bz2" "$GNU_MIRROR/gmp"
+ if test ! -f $dlwhere/gmp-5.0.1.tar.bz2; then
+ getfile "gmp-5.0.1.tar.bz2" "$GNU_MIRROR/gmp"
+ fi
tar xjf $dlwhere/gmp-5.0.1.tar.bz2
- ln -s gmp-5.0.1.tar.bz2 gmp
+ ln -s gmp-5.0.1 gmp
fi
if test ! -d mpfr; then
echo "ROCKBOXDEV: Getting MPFR"
- getfile "mpfr-2.4.2.tar.bz2" "$GNU_MIRROR/mpfr"
+ if test ! -f $dlwhere/mpfr-2.4.2.tar.bz2; then
+ getfile "mpfr-2.4.2.tar.bz2" "$GNU_MIRROR/mpfr"
+ fi
tar xjf $dlwhere/mpfr-2.4.2.tar.bz2
ln -s mpfr-2.4.2 mpfr
fi
+ cd $builddir
fi
echo "ROCKBOXDEV: mkdir build-$toolname"