1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-26 21:01:32 +00:00

Build toolchain with 387 and ARMv5 support (fixes #336)

This commit is contained in:
Lode Hoste 2015-05-24 22:00:21 +02:00
parent 7ed77e079c
commit 6a97e6d719

View file

@ -5,7 +5,7 @@ ORIG=$(pwd)
mkdir -p bin
# Load submodules
if [ ! -f "ext/syncthing/src/github.com/syncthing/syncthing/.git" ]; then
if [ ! -e "ext/syncthing/src/github.com/syncthing/syncthing/.git" ]; then
git submodule update --init --recursive
fi
@ -26,7 +26,7 @@ if [ -z $GOROOT ] || [[ $(go version) != go\ version\ go1.4* ]] ; then
rm go.src.tar.gz
# Build GO for host
pushd $tmpgo/src
./make.bash --no-clean
GO386=387 GOARM=5 ./make.bash --no-clean
popd
fi
# Add GO to the environment
@ -50,7 +50,7 @@ fi
if [ ! -f $GOROOT/bin/linux_arm/go ]; then
pushd $GOROOT/src
# Build GO for cross-compilation
GOOS=linux GOARCH=arm ./make.bash --no-clean
GOOS=linux GOARCH=arm GOARM=5 ./make.bash --no-clean
popd
fi