Skip to content

[staging-next] various: fix ld64 darwin build issues - #537396

Merged
emilazy merged 3 commits into
NixOS:staging-nextfrom
sempiternal-aurora:various-ld64-format-fixes
Jul 1, 2026
Merged

emilazy merged 3 commits into
NixOS:staging-nextfrom
sempiternal-aurora:various-ld64-format-fixes

Conversation

@sempiternal-aurora

Copy link
Copy Markdown
Contributor

Fixes the vims, emacs and gtk3. Will add more if I find them before merging.

Things done

@sempiternal-aurora sempiternal-aurora changed the title various: fix ld64 darwin build issues [staging-next] various: fix ld64 darwin build issues Jul 1, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 6.topic: emacs Text editor 6.topic: vim Advanced text editor labels Jul 1, 2026

@jian-lin jian-lin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not have full context, just pointing out one trivial error about Emacs.

@sempiternal-aurora
sempiternal-aurora force-pushed the various-ld64-format-fixes branch from 8f2ce33 to 49a8fb5 Compare July 1, 2026 13:39
@sempiternal-aurora
sempiternal-aurora force-pushed the various-ld64-format-fixes branch from 49a8fb5 to 7487e9c Compare July 1, 2026 14:03
@jian-lin
jian-lin dismissed their stale review July 1, 2026 14:12

resolved

@emilazy emilazy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

FWIW, NIX_CFLAGS_LINK is the more strictly correct flag here if you need to inject things behind the build system’s back; it avoids triggering unused argument warnings which can e.g. cause issues with -Werror or feature detection that keys on those warnings. (And of course for many build systems you can pass LDFLAGS or similar directly.) But this should be fine for now.

Sorry again about how inadvisable that clean‐up turned out to be… I have a feeling that downstream users’ builds are going to be impacted by this issue until the next cycle 😔

@emilazy
emilazy added this pull request to the merge queue Jul 1, 2026
Merged via the queue into NixOS:staging-next with commit 467c071 Jul 1, 2026
27 checks passed
@sempiternal-aurora sempiternal-aurora mentioned this pull request Jul 10, 2026
2 of 13 tasks
@sempiternal-aurora
sempiternal-aurora deleted the various-ld64-format-fixes branch September 1, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: emacs Text editor 6.topic: vim Advanced text editor 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants