blob: 69d933c1f066d2f459f2dde484b5ca81e6227724 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
if [[ -z $ANDROID_HOME ]]; then
export ANDROID_HOME=$HOME/Android/Sdk
fi
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/21.4.7075529
export HOST_TAG=linux-x86_64 # darwin-x86_64 / linux-x86_64 / windows / windows-x86_64
export MIN_SDK_VERSION=21
export CFLAGS="-Os -ffunction-sections -fdata-sections -fno-unwind-tables -fno-asynchronous-unwind-tables"
export LDFLAGS="-Wl,-s -Wl,-Bsymbolic -Wl,--gc-sections"
export THREADS=12 # Number of threads to use while compiling openssl
|