Repository navigation
Conversation
With this the pkgconfig bits make more use of CMake variables to make things more flexible, and avoid issues on different platforms and environments, while also making the CMake related set-up more consistent. Downstream bug: - https://bugs.gentoo.org/980148 For more downstream context, see for example: - https://bugs.gentoo.org/729642 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
Collaborator
|
Looks good but I would argue to keep using the prefix variable for consistency, e.g. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Use
libdir=@CMAKE_INSTALL_FULL_LIBDIR@instead oflibdir=${prefix}/lib.Motivation and Context
With this the pkgconfig bits make more use of CMake variables to make things more flexible, and avoid issues on different platforms and environments, while also making the CMake related set-up more consistent.
Downstream bug:
https://bugs.gentoo.org/980148
For more downstream context, see for example:
https://bugs.gentoo.org/729642
Perhaps it would make sense to use the variables for the other values in these as well, similar to how it is already being done in
libobs/pkgconfig/libobs.pc.in.That would also allow for
-Werrorto be conveniently set somewhere else, for the CI and where otherwise desired.I believe it rarely makes sense downstream, causing build errors with new GCC warnings for example, while they're not doing any actual harm.
For some more context on that, see for example:
https://devmanual.gentoo.org/ebuild-writing/common-mistakes/#-werror-compiler-flag-not-removed
Thank you!
How Has This Been Tested?
Built and ran on Gentoo Linux (amd64 and arm64).
Types of changes
Checklist: