From 26d4f3ffeb64c5d3ac939bd10d2be67afa094076 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: Sat, 6 Jun 2020 23:34:48 +0800 Subject: Add a line to instructions for FreeBSD --- README.md | 15 ++++++++++++--- 1 file 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 -- cgit v1.2.3