diff --git a/README.md b/README.md index 9ef1192..f06763d 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ See below in how to use libc++ as the standard library. If you want to build GCC as well, then you can do this by running `./build_gcc.sh`. But before you do this, make sure you have got the GCC build depedencies installed on your system, -on debian like systems you can run `apt-get install mpc-dev mpfr-dev gmp-dev` to install them. +on debian like systems you can run `apt-get install libmpc-dev libmpfr-dev libgmp-dev` to install them. ### SDK DOWNLOAD LINKS: ### @@ -125,6 +125,7 @@ You can use the shortcut `o32-...` or `i386-apple-darwin...` what ever you like * bash scripts: GPLv2 * cctools: APSL 2.0 * xar: New BSD + * bc: GPLv3 ### CREDITS: #### diff --git a/build.sh b/build.sh index 4f952cb..25302f5 100755 --- a/build.sh +++ b/build.sh @@ -98,9 +98,9 @@ if [ ! -f "have_cctools_${CCTOOLS_REVHASH}_$TARGET" ]; then rm -rf cctools* rm -rf xar* +rm -rf bc* tar xJfv $TARBALL_DIR/cctools*.tar.xz -tar xzfv $TARBALL_DIR/xar*.tar.gz pushd cctools*/cctools &>/dev/null patch -p0 < $PATCH_DIR/cctools-ld64-1.patch @@ -127,9 +127,31 @@ popd &>/dev/null fi # have cctools + +set +e +which bc &>/dev/null +NEED_BC=$? +set -e + + +if [ $NEED_BC -ne 0 ]; then + +tar xfv $TARBALL_DIR/bc*.tar.bz2 + +pushd bc* &>/dev/null +CFLAGS="-w" ./configure --prefix=$TARGET_DIR --without-flex +make -j$JOBS +make install -j$JOBS +popd &>/dev/null + +fi # NEED BC + + if [ ! -f "have_xar_$TARGET" ]; then if [ -n "$FORCE_XAR_BUILD" ] || [ `echo "$SDK_VERSION<=10.5" | bc -l` -eq 1 ]; then +tar xzfv $TARBALL_DIR/xar*.tar.gz + pushd xar* &>/dev/null set +e sed -i 's/-Wall/-w/g' configure diff --git a/tarballs/bc-1.06.94.tar.bz2 b/tarballs/bc-1.06.94.tar.bz2 new file mode 100644 index 0000000..0a89190 Binary files /dev/null and b/tarballs/bc-1.06.94.tar.bz2 differ