Skip to content

Commit 958fa37

Browse files
authored
Add /vendor/lib64 to driver search path for android (#433)
Related-To: NEO-18093 Signed-off-by: Jeevaka Prabu Badrappan <jeevaka.badrappan@intel.com>
1 parent 834f6a7 commit 958fa37

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/loader/linux/driver_discovery_lin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ static std::vector<std::string> getLibrarySearchPaths() {
4646
auto split = splitPaths(ldLibPath);
4747
paths.insert(paths.end(), split.begin(), split.end());
4848
}
49+
#if defined(ANDROID)
50+
paths.push_back("/vendor/lib64");
51+
#else
4952
// Standard locations - Common across all Linux distributions
5053
paths.push_back("/lib");
5154
paths.push_back("/usr/lib");
@@ -68,6 +71,7 @@ static std::vector<std::string> getLibrarySearchPaths() {
6871
paths.push_back("/var/lib/flatpak/runtime");
6972
paths.push_back("/snap/core/current/lib");
7073
paths.push_back("/snap/core/current/usr/lib");
74+
#endif // ANDROID
7175

7276
// /etc/ld.so.conf and included files
7377
std::ifstream ldSoConf("/etc/ld.so.conf");

0 commit comments

Comments
 (0)