[cfe-users] --sysroot and --gcc-toolchain: any docs etc.?

2017-06-13 Thread Paul Smith via cfe-users
Can someone point to any detailed information about how these flags work? I have a custom-compiled version of GCC on Linux and I'm trying to build Clang 4.0.0 for this system as well. I would like it to use libstdc++ from my custom-compiled GCC installation to allow linking of other libraries bui

Re: [cfe-users] --sysroot and --gcc-toolchain: any docs etc.?

2017-06-13 Thread Raphael Isemann via cfe-users
Hi, we also had this problem and the thing it that clang checks for a valid GCC/libstdc++ installation by looking for the crtbegin.o file in the related lib directory. So it doesn't work if you just have the headers for libstdc++, you also need to recreate the folder-structure that leads to the cr

Re: [cfe-users] --sysroot and --gcc-toolchain: any docs etc.?

2017-06-13 Thread Paul Smith via cfe-users
On Tue, 2017-06-13 at 15:08 +0200, Raphael Isemann wrote: > we also had this problem and the thing it that clang checks for a > valid GCC/libstdc++ installation by looking for the crtbegin.o file in > the related lib directory. So it doesn't work if you just have the > headers for libstdc++, you al

Re: [cfe-users] --sysroot and --gcc-toolchain: any docs etc.?

2017-06-13 Thread Raphael Isemann via cfe-users
2017-06-13 16:09 GMT+02:00 Paul Smith : > On Tue, 2017-06-13 at 15:08 +0200, Raphael Isemann wrote: >> we also had this problem and the thing it that clang checks for a >> valid GCC/libstdc++ installation by looking for the crtbegin.o file in >> the related lib directory. So it doesn't work if you