This option works for me based on 3.2 clang for a trivial .cpp file, maybe some similar options might help. I can see --sysroot being honored without that I get “/usr/lib/gcc/arm-linux-gnueabi/4.5.1/…/…/…/…/arm-linux-gnueabi/bin/ld: warning: libc.so, needed by /usr/lib/gcc/arm-linux-gnueabi/4.5.1/libgcc_s.so.1, not found (try using -rpath or -rpath-link)”.
clang++
–sysroot=$SYSROOT
x.cpp
-target arm-linux-gnueabi
-ccc-gcc-name arm-linux-gnueabi-g++
-mcpu=cortex-a9
-o
x.arm-clang.2.bin
------- Original Message -------
Sender : Stephen Kellysteveire@gmail.com
Title : Re: [cfe-dev] Cross compiling with clang (and sysroot support)
Stephen Kelly wrote: