diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-02-25 12:25:04 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2020-02-25 12:25:04 +0800 |
commit | 211c5e1a57aa8958d64b16d61fcf04dc48d43837 (patch) | |
tree | 0c54eb09837c5ef0e2a6a6e13da60b31339d467e /README.md | |
parent | bc31cb31179963bf832270715f61d8325cbdf7ab (diff) |
Add environment settings for building on FreeBSD
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -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 |