-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux - Fix] Dynamic libraries no longer deadlock when missing, and use the correct headers #109
base: stable
Are you sure you want to change the base?
Conversation
@@ -246,6 +56,12 @@ static bool libjpeg_global_init(void) | |||
bool r = true; | |||
|
|||
LIBJPEG_SO = MTY_SOLoad("libjpeg.so.8"); | |||
if (!LIBJPEG_SO) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would have probably factored out a function that takes an array of strings, and attempts to MTY_SOLoad
each in turn, because we do it for N libraries M times each. and, it would make it easy for us to add logging etc. in a central spot, without having to paste the logging code multiple times.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
I would've done the same for libcrypto, libcurl, libssl, libudev, and libx11, but those appear more involved, and seem to be more consistent between versions. It would take much more time to extend this work to those.
Install
libasound2-dev
,libjpeg-dev
, andlibpng-dev
, to build MTY on Linux