On 3/5/19 6:23 PM, Rob Landley wrote:
> landley@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
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to