[Toybox] NDK r18 build.

enh enh at google.com
Mon Oct 8 11:52:55 PDT 2018


On Sun, Oct 7, 2018 at 6:13 PM Rob Landley <rob at landley.net> wrote:
>
> I downloaded the release 18 NDK and installed it:
>
>   sudo build/tools/make_standalone_toolchain.py --arch x86_64 --api 28 \
>     --install-dir /opt/android/x86_64
>
> Then in order to build:
>
>   export CROSS_COMPILE=/opt/android/x86_64/bin/llvm- LDFLAGS=--static
>   make distclean
>   make defconfig
>   make
>
> I need to:
>
>   A) add the llvm-cc symlink to clang.

note that toybox is our example of a non-configure project on
https://developer.android.com/ndk/guides/standalone_toolchain#building_open_source_projects_using_standalone_toolchains

>   B) disable the android logger because liblog.so doesn't have a
>      corresponding liblog.a.

yeah, all the "NDK" libraries are stub .so-only (even the .so files
just have symbols for build-time linking, no code).

> (I'm trying to move compile time probes into portability.h but that can't
> distinguish between static and non-static linking. But needing to pass the same
> flags to defconfig and the the actual compile is kinda awkward/brittle too...)
>
> Rob
> _______________________________________________
> Toybox mailing list
> Toybox at lists.landley.net
> http://lists.landley.net/listinfo.cgi/toybox-landley.net



More information about the Toybox mailing list