Skip to content

Allow distribution of musl + glibc binaries#545

Merged
asgrim merged 3 commits intophp:1.4.xfrom
cataphract:glibc+musl
Mar 16, 2026
Merged

Allow distribution of musl + glibc binaries#545
asgrim merged 3 commits intophp:1.4.xfrom
cataphract:glibc+musl

Conversation

@cataphract
Copy link
Contributor

@cataphract cataphract commented Mar 16, 2026

Search for binaries with the anylibc suffix as a fallback candidate (on Linux only).

This allows shipping binaries that work both on glibc and musl without copying the same binary with two separate names.

The second commit fixes assertion failures when not running a linux/glibc (I think a better long-term solution would be to extend TargetPlatform to also take the libc flavor.

Fixes #544

PR submitter checklist

Search for binaries with the anylibc suffix as a fallback candidate.
This allows shipping binaries that work both on glibc and musl without
copying the same binary with two separate names.
@asgrim asgrim self-requested a review March 16, 2026 11:29
@asgrim asgrim added the enhancement New feature or request label Mar 16, 2026
@asgrim asgrim added this to the 1.4.0 milestone Mar 16, 2026
@asgrim
Copy link
Contributor

asgrim commented Mar 16, 2026

Thanks @cataphract :)

@asgrim asgrim enabled auto-merge March 16, 2026 11:46
@asgrim asgrim merged commit 09b665b into php:1.4.x Mar 16, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search for Linux binaries without libc suffix

2 participants