Re: [cfe-users] Unexpected include directories when cross-compiling

2015-09-22 Thread Jeffrey Walton via cfe-users
> Another thing I noticed occurs when using the -sysroot option. clang then > tries to use $sysroot/usr/include. In my oppinion it should use > $sysroot/include instead. I could be wrong here, but --sysroot and --isysroot (with some hand waiving) means use /usr/include to find headers and /usr/lib

Re: [cfe-users] Unexpected include directories when cross-compiling

2015-09-22 Thread don hinton via cfe-users
Take a look at the "Toolchain Options" and "Target-Specific Libraries" sections here: http://clang.llvm.org/docs/CrossCompilation.html Which will show you how to tell the compiler where to find stuff for your target system. hth... don On Tue, Sep 22, 2015 at 11:38 AM, Andreas Messer via cfe-u