Make OSXCross work on Android (Termux)

Additional changes:

5e9c52005f
9fa76fb95a
8239a5211b

cd9885b97f
This commit is contained in:
Thomas Pöchtrager 2019-11-06 20:42:24 +01:00
parent 98149255fe
commit 542acc2ef6
3 changed files with 12 additions and 2 deletions

View File

@ -2,8 +2,8 @@
### WHAT IS THE GOAL OF OSXCROSS? ### ### WHAT IS THE GOAL OF OSXCROSS? ###
The goal of OSXCross is to provide a well working OS X cross toolchain for The goal of OSXCross is to provide a well working OS X cross toolchain for
Linux and FreeBSD. Linux, FreeBSD, OpenBSD and Android (Termux).
OSXCross works **on** x86, x86_64, ARM and AArch64. OSXCross works **on** x86, x86_64, ARM and AArch64.

View File

@ -171,6 +171,15 @@ else
mv -f *OSX*$SDK_VERSION*sdk* $SDK_DIR mv -f *OSX*$SDK_VERSION*sdk* $SDK_DIR
fi fi
## Android/Termux is broken
if [ $OPERATING_SYSTEM == "Android" ]; then
pushd $SDK_DIR/MacOSX$SDK_VERSION.sdk &>/dev/null
mkdir -p data/data/com.termux/files/usr
create_symlink $PWD/usr/include data/data/com.termux/files/usr
popd &>/dev/null
fi
## Fix broken SDKs ## ## Fix broken SDKs ##
pushd $SDK_DIR/MacOSX$SDK_VERSION.sdk &>/dev/null pushd $SDK_DIR/MacOSX$SDK_VERSION.sdk &>/dev/null

View File

@ -41,6 +41,7 @@ set_path_vars
PLATFORM=$(uname -s) PLATFORM=$(uname -s)
ARCH=$(uname -m) ARCH=$(uname -m)
OPERATING_SYSTEM=$(uname -o 2>/dev/null || echo "-")
SCRIPT=$(basename $0) SCRIPT=$(basename $0)
if [[ $PLATFORM == CYGWIN* ]]; then if [[ $PLATFORM == CYGWIN* ]]; then