Consider libs under `…/lib/linux/…` Android-specific as well
This commit is contained in:
parent
e477613a8b
commit
2e448b427b
|
@ -219,7 +219,8 @@ void Binary::load(std::string_view fileContent, std::string_view fileName, std::
|
|||
// add prefix to Android and compat libs to avoid confusion with normal GNU/Linux ELFs
|
||||
// note: Relying on the path is not nice. Have Android libs any special header to be distinguishable?
|
||||
if (directoryPath.starts_with("opt/android-libs")
|
||||
|| (directoryPath.starts_with("opt/android-ndk") && directoryPath.find("/sysroot/") != std::string::npos)) {
|
||||
|| (directoryPath.starts_with("opt/android-ndk") && (directoryPath.find("/sysroot/") != std::string::npos
|
||||
|| directoryPath.find("/lib/linux/") != std::string::npos))) {
|
||||
extraPrefix = "android-";
|
||||
} else if (directoryPath.starts_with("usr/static-compat/lib") && fileName.find(".so") != std::string::npos) {
|
||||
extraPrefix = "static-compat-";
|
||||
|
|
Loading…
Reference in New Issue