Can't cross-compile for android

So, when I try to run cargo build --target armv7-linux-androideabi I get an error:

error: linking with `armv7a-linux-androideabi21-clang` failed: exit status: 1

note: clang-18: error: no input files

My .cargo/config.toml:

[target.armv7-linux-androideabi]
   linker = "armv7a-linux-androideabi21-clang"

Why isn't cargo providing any input files to clang and how do I force cargo to provide ones?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.