unset LD_PRELOAD in su because magist 16.4 is 32 bit only
[termux-packages] / packages / binutils / options.cc.patch64
1 --- ../cache/binutils-2.30/gold/options.cc 2018-01-13 13:31:16.000000000 +0000
2 +++ ./gold/options.cc 2018-03-11 23:20:26.295331766 +0000
3 @@ -1227,8 +1227,8 @@
4 || this->user_set_sysroot()
5 || *TARGET_SYSTEM_ROOT != '\0')
6 {
7 - this->add_to_library_path_with_sysroot("/lib");
8 - this->add_to_library_path_with_sysroot("/usr/lib");
9 + this->add_to_library_path_with_sysroot("/data/data/com.termux/files/usr/lib");
10 + this->add_to_library_path_with_sysroot("/system/lib64");
11 }
12 else
13 this->add_to_library_path_with_sysroot(TOOLLIBDIR);