GnuCompiler::do_prepare();
if(!version.empty())
{
- FS::Path cxx_path = FS::Path("/usr/include/c++")/version;
+ const FS::Path &sysroot = build_info.sysroot;
+ FS::Path cxx_path = sysroot/"usr"/"include"/"c++"/version;
if(FS::is_dir(cxx_path))
system_path.push_back(cxx_path);
}