Skip to content

[v3] fix(macos): static build remove -fno-plt from macOS CFLAGS - #1150

Merged
henderkes merged 2 commits into
crazywhalecc:v3from
luthermonson:fix/macos-fno-plt
May 21, 2026
Merged

henderkes merged 2 commits into
crazywhalecc:v3from
luthermonson:fix/macos-fno-plt

Conversation

@luthermonson

Copy link
Copy Markdown
Contributor

-fno-plt is an ELF-only flag that has no effect on macOS Mach-O targets, clang emits "argument unused" when it encounters it. Libraries like xz that run -Werror sanity checks during configure promote that warning to a fatal error, breaking the build. Can only find this issue if you static build with an extension that uses xz e.g. libxml2, libzip, libtiff, imagemagick

-fno-plt is an ELF-only flag that has no effect on macOS Mach-O
targets — clang emits "argument unused" when it encounters it.
Libraries like xz that run -Werror sanity checks during configure
promote that warning to a fatal error, breaking the build.
@luthermonson luthermonson changed the title fix(macos): static build remove -fno-plt from macOS CFLAGS [v3] fix(macos): static build remove -fno-plt from macOS CFLAGS May 21, 2026
@henderkes
henderkes merged commit 60a91a8 into crazywhalecc:v3 May 21, 2026
7 checks passed
@luthermonson
luthermonson deleted the fix/macos-fno-plt branch May 21, 2026 05:42
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