Skip to content

update musl libc test to fix "cross" compilation on glibc system #19352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

henderkes
Copy link

@henderkes henderkes commented Aug 3, 2025

The ldd check for musl libc does not correctly detect musl libc in case one is compiling for musl libc on a glibc system. This PR fixes that.

This works because <features.h> will automatically define __USE_GNU under glibc to enable GNU extensions, which musl explicitly does not support.

@devnexen devnexen requested a review from petk August 3, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants