blob: c9693614d0f4cbc98df9c77e309e687ae9eb8e24 (
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.3.6528147
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
|