[Toybox] NDK versions?

Rob Landley rob at landley.net
Fri Mar 8 10:47:30 PST 2019


On 3/5/19 6:23 PM, Rob Landley wrote:
> landley at halfbrick:~/toybox/clean$
> CROSS_COMPILE=/home/landley/android/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-
> LDFLAGS=--static make

It took some squinting (and rereading the instructions on the website multiple
times... why does the
android-ndk-r19b/toolchains/x86_64-4.9/prebuilt/linux-x86_64/bin/ directory
exist again? There's no cc in there.)

But this worked:

mkdir ~/android
cd ~/android
wget https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip
unzip android-ndk-r19b-linux-x86_64.zip
ln -s x86_64-linux-android28-clang
android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android-cc

cd ~/toybox
CROSS_COMPILE=~/android-ndk-r19b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android-
LDFLAGS=--static make distclean defconfig toybox

I should stick some variant of that in the FAQ page.

Rob



More information about the Toybox mailing list