Skip to content
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

[libpng] Replace find_library() with a simple set() for linking libm on UNIX #8079

Merged
merged 2 commits into from
Sep 13, 2019
Merged

[libpng] Replace find_library() with a simple set() for linking libm on UNIX #8079

merged 2 commits into from
Sep 13, 2019

Conversation

kblaschke
Copy link
Contributor

Similar issue as with Pull Request #7989, but different and more generic fix. Linking libm will work with the default x64-linux triplet, but fail if cross compiling (with a user-specific x86-linux triplet for example), with or without emscripten. As libm is part of the standard library, it can just be linked with its name.

This issue was also present in the Conan package manager and fixed the same way.

@msftclas
Copy link

msftclas commented Sep 6, 2019

CLA assistant check
All CLA requirements met.

@Rastaban
Copy link
Contributor

This change looks good to me. Could you also bump the version in the libpng\CONTROL file to 1.6.37-4?

@kblaschke
Copy link
Contributor Author

Done, is now 1.6.37-4.

@Rastaban Rastaban merged commit 8887f6c into microsoft:master Sep 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants