I tried to build my program with Snapdragon LLVM, but I got a problem when linking. The LLVM compiler seems tried to find linker in usr/lib/bin, rahter than Android NDK path. I tried to add export LD = "$(NDK_root)" in my makefile but no use.
My command line is
clang++ -o test.bin libx.a liby.a
How should I fix the problem?