From 211c5e1a57aa8958d64b16d61fcf04dc48d43837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Tue, 25 Feb 2020 12:25:04 +0800 Subject: Add environment settings for building on FreeBSD --- README.md | 16 ++++++++++++++-- 1 file 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 -- cgit v1.2.3