summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-02-25 12:25:04 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-02-25 12:25:04 +0800
commit211c5e1a57aa8958d64b16d61fcf04dc48d43837 (patch)
tree0c54eb09837c5ef0e2a6a6e13da60b31339d467e
parentbc31cb31179963bf832270715f61d8325cbdf7ab (diff)
Add environment settings for building on FreeBSD
-rw-r--r--README.md16
1 files changed, 14 insertions, 2 deletions
diff --git a/README.md b/README.md
index 8d656b0..a282e31 100644
--- a/README.md
+++ b/README.md
@@ -12,9 +12,21 @@ $ autoreconf --install
## Optionally setting environment values
+If, for example, on FreeBSD and using a previously set up arm64 Android standalone toolchain:
```sh
-$ export CFLAGS="${CFLAGS} -g -DDEBUG -DANDROID -fPIC" # PIC might be needed later on android_armv7
-$ export LDFLAGS="${LDFLAGS} -llog" # Android liblog
+$ setenv CFLAGS "-target aarch64-linux-android --sysroot=/usr/local/aarch64-linux-android/sysroot -I/usr/local/aarch64-linux-android/lib64/clang/7.0.2/include -L/usr/local/aarch64-linux-android/lib/gcc/aarch64-linux-android/4.9.x"
+```
+
+If debugging for Android:
+```sh
+$ export CFLAGS="${CFLAGS} -g -DDEBUG -DANDROID"
+$ export LDFLAGS="${LDFLAGS} -llog"
+```
+
+and if for android_armv7:
+
+```sh
+$ export CFLAGS="${CFLAGS} -fPIC"
```
## Configuring for various target hosts