make sysroot works properly

This commit is contained in:
its-pointless 2019-02-26 09:20:01 +11:00 committed by Leonid Pliushch
parent 032ed6fb15
commit 857cc35f35

View File

@ -5,7 +5,7 @@
// to the link paths. // to the link paths.
path_list &Paths = getFilePaths(); path_list &Paths = getFilePaths();
+ if(IsAndroid) + if(IsAndroid)
+ addPathIfExists(D, "@TERMUX_PREFIX@/lib", Paths); + addPathIfExists(D, SysRoot + "@TERMUX_PREFIX@/lib", Paths);
const std::string OSLibDir = getOSLibDir(Triple, Args); const std::string OSLibDir = getOSLibDir(Triple, Args);
const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot); const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);