On Sun, Oct 7, 2018 at 6:13 PM Rob Landley <[email protected]> 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 > [email protected] > http://lists.landley.net/listinfo.cgi/toybox-landley.net _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
