summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-06 23:34:48 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-06 23:34:48 +0800
commit26d4f3ffeb64c5d3ac939bd10d2be67afa094076 (patch)
tree451a1b4a577595b1d8df403cada44bab6c8d2d11
parentc33432a46298104a3f79166ba49c0c6668d96861 (diff)
Add a line to instructions for FreeBSD
-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