Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix multiple versions of the same dynamic lib used #82

Merged
merged 1 commit into from
Feb 25, 2019

Conversation

Deluvi
Copy link
Contributor

@Deluvi Deluvi commented Feb 25, 2019

Currently, in the Android NDK r19b, there are multiple versions of the same library for different architectures. Dinghy would find the correct lib file first, but then would search for more lib files and find the files for incorrect architectures. It led to some strange behaviors where Dinghy would try to run a 64 bit ARM binary with a 32 bit Intel dynamic library.

This fix applies a filter on the library file path list by taking the first occurrence of a library file and discard the rest of the occurrences. Therefore, there is only one version of each lib in the list, most likely the fitting one.

@Deluvi Deluvi self-assigned this Feb 25, 2019
@Deluvi Deluvi requested a review from kali February 25, 2019 15:56
Copy link
Collaborator

@kali kali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should fix, even if you cowardly avoid rewriting that long sausage of iterators :)

@kali kali merged commit 1a56ffe into master Feb 25, 2019
@Deluvi Deluvi deleted the android-ndk-19+-fix1 branch February 27, 2019 12:08
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants