mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 20:13:05 +02:00
7299fefa77
since the introduction of the unified headers, the API level has to be specified on the command line, otherwise a development API level (1000) will be used and will mess up older Android releases. On top of that, circumvent a bug in pthread.h by defining __LP32__. This problem was causing crashes on Android 5 as it wasn't able to provide libc functions expected by the precompiled ovpn3-core. Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
16 lines
589 B
Plaintext
16 lines
589 B
Plaintext
[ -z "$DEP_DIR" ] && export DEP_DIR=$HOME/src/android
|
|
export PLATFORM=android-x86
|
|
export ABI=x86
|
|
export DEBUG_BUILD=0
|
|
export OTHER_COMPILER_FLAGS=""
|
|
export CXX_COMPILER_FLAGS="-std=c++1y"
|
|
export LIB_OPT_LEVEL="-O3"
|
|
export LIB_FPIC="-fPIC"
|
|
export TC=$DEP_DIR/tc-x86
|
|
export PLATFORM_FLAGS="-D__LP32__ -D__ANDROID_API__=14 -march=i686 -fomit-frame-pointer --sysroot=$TC/sysroot"
|
|
export GPP_CMD="$TC/bin/i686-linux-android-g++"
|
|
export GCC_CMD="$TC/bin/i686-linux-android-gcc"
|
|
|
|
[ -z "$VARS_SAVE_PATH" ] && VARS_SAVE_PATH="$PATH"
|
|
export PATH="$TC/bin:$TC/i686-linux-android/bin:$VARS_SAVE_PATH"
|