mirror of
https://github.com/Relintai/osxcross.git
synced 2025-04-11 17:32:38 +02:00
build bc on systems where it is not (pre-)installed
This commit is contained in:
parent
e935b36688
commit
3a7c2e6635
@ -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: ####
|
||||
|
24
build.sh
24
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
|
||||
|
BIN
tarballs/bc-1.06.94.tar.bz2
Normal file
BIN
tarballs/bc-1.06.94.tar.bz2
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user