summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/README.md b/README.md
index d60f960..ffbc8c1 100644
--- a/README.md
+++ b/README.md
@@ -14,9 +14,7 @@ $ autoreconf --install
## Optionally setting environment values
```sh
-$ export CPPFLAGS="${CPPFLAGS} -DDEBUG -DANDROID"
-$ export CFLAGS="${CFLAGS} -g"
-$ export NDK=/opt/android-ndk-r21
+$ export NDK=/opt/android-ndk-r19
$ export TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64
```
@@ -68,6 +66,17 @@ $ export STRIP=$TOOLCHAIN/bin/$TARGET-strip
$ export PREFIX=$TOOLCHAIN/sysroot/usr
```
+If debugging for Android:
+```sh
+$ export CPPFLAGS="$CPPFLAGS -DDEBUG -DANDROID"
+$ export CFLAGS="$CFLAGS -g"
+```
+
+If, for example, on FreeBSD and cross-compiling for arm64 Android relying on Linux binary compatibility:
+```sh
+$ setenv LDFLAGS "$LDFLAGS -L$PREFIX/lib/$TARGET/$API"
+```
+
## Configuring for various target hosts
```sh