Skip to content

Specify minimum libc version #9726

Answered by eli-schwartz
dr-begemot asked this question in Q&A
Discussion options

You must be logged in to vote

Dependencies can have version attributes, and check those versions, because pkg-config and cmake etc. have formal methods to expose versions.

find_library cannot and does not have a version attributes, and cannot check versions, because there is no way to extract those versions to begin with.

One possibility would be to add an attribute to check the soname, but this doesn't really tell you anything about the API, only the ABI, so it would be of very little use. Worse, the soname for GNU libc has been "6" for decades. They use symbol versioning rather than library versioning, and this allows preserving ABI compat.

Why do you need to check the GNU libc version? Checking it during configure …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@dr-begemot
Comment options

Answer selected by dr-begemot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants