Improvements to the pkg-config file #26
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Two small improvements to
m4ri.pc
:libpng becomes an internal (
Requires.private
) dependency. I've looked at the code, and I don't think any symbols from libpng are leaked to consumers. In other words, someone linking their program to m4ri does not need to supply-lpng
. This change prevents the-lpng
from being output bypkg-config --libs m4ri
.The OpenMP flags are applied to static linking only. This was my original motivation for digging into this file. My copy of sage was being compiled (but not linked!) with
-fopenmp
because that flag appears in the pkg-config output for m4ri. The result of course crashes due to missing libgomp symbols. TheOPENMP_FLAGS
are applied to linking to (only) to avoid this issue, and made private for the same reason we made libpng private.Resolves:
CC: @kiwifb, @dimpase, @tornaria, @arojas, @isuruf