Skip to content

Rely on an external package for portability questions about the libc#8

Closed
agagniere wants to merge 4 commits into
masterfrom
libcquery
Closed

Rely on an external package for portability questions about the libc#8
agagniere wants to merge 4 commits into
masterfrom
libcquery

Conversation

@agagniere

Copy link
Copy Markdown
Member

Several C libraries packaged with Zig build (LibreSSL, libpq) have to answer the same questions about wether the target's libc has a given function / header.
So I'm centralizing the logic in a single package, that takes versions into account, and generates what it can from the Zig toolchain.

The main benefit for a package like curl is a decrease in complexity and maintenance burden.

I already migrated libpq, and will do LibreSSL next (even though it is there that I started initially)

@agagniere agagniere self-assigned this Jun 8, 2026
@agagniere agagniere marked this pull request as ready for review June 8, 2026 15:57
@agagniere agagniere requested a review from Techatrix June 8, 2026 15:58
@Techatrix

Copy link
Copy Markdown
Member

This libc-query idea seems very interesting. However, I'm already relying on my own tool that automatically extracts config headers from the upstream build system (cmake in this case) and converts them into b.addConfigHeader which I'm partially using for this curl package. I don't think that relying on libc-query would ultimately decrease the maintenance burden on this project for me.

If this package gains adoption within allyourcodebase and continues to be well maintained over time, I may reconsider.

@Techatrix Techatrix closed this Jun 19, 2026
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.

2 participants