Skip to content

Use linkSystemLibrary for distro-agnostic include paths#3

Merged
Jesssullivan merged 1 commit intomainfrom
sid/fix-distro-include-paths
Mar 29, 2026
Merged

Use linkSystemLibrary for distro-agnostic include paths#3
Jesssullivan merged 1 commit intomainfrom
sid/fix-distro-include-paths

Conversation

@Jesssullivan
Copy link
Copy Markdown
Owner

Summary

Replace hardcoded Debian-specific include paths with linkSystemLibrary("libsecret-1") and linkSystemLibrary("glib-2.0") which uses pkg-config to find headers on any Linux distro (Debian, Fedora, Arch, NixOS).

Fixes Arch Linux and Fedora build failures where glibconfig.h is at /usr/lib/glib-2.0/include/ instead of /usr/lib/x86_64-linux-gnu/glib-2.0/include/.

Replace distro-specific hardcoded paths (/usr/lib/x86_64-linux-gnu/...)
with linkSystemLibrary("libsecret-1") and linkSystemLibrary("glib-2.0")
which uses pkg-config to find headers on any Linux distro.
@Jesssullivan Jesssullivan merged commit 5bf9e50 into main Mar 29, 2026
3 checks passed
@Jesssullivan Jesssullivan deleted the sid/fix-distro-include-paths branch March 29, 2026 02:29
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.

1 participant