!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

565 Members
118 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
30 Nov 2025
@reckenrode:matrix.orgRandy EckenrodeMy ld64 fork is set up to not need private headers, which should make the port easier. There’s a bunch of platform-specific stuff that needs updated to use portable APIs or a different implementation on non-Darwin.22:14:25
@reckenrode:matrix.orgRandy EckenrodeI’d suggest any such work start from there. We don’t use cctools-port.22:16:16
@reckenrode:matrix.orgRandy EckenrodeSomewhat longer term, I want to rewrite at least some parts of ld64 in Swift. It does a lot of pointer fiddling and other unsafe stuff. There was a ton of UB fixed a release or two ago.22:17:10
@reckenrode:matrix.orgRandy EckenrodeI wanted to work on making it build on Linux at some point even without that, but there are other priorities like Swift.22:19:52
@reckenrode:matrix.orgRandy EckenrodeWhen I resync with upstream, I’ll incorporate any patches people have submitted to nixpkgs to fix the build.22:20:06
@bake.monorail:matrix.orgbake.monorail I just managed to get ld64 from cctools-port to build. What's wrong with that? 22:23:03
@bake.monorail:matrix.orgbake.monorail libtapi doesn't look like great code either, but I'd avoid frontloading rewriting code in order to be able to cross-compile for macOS. 22:26:56
1 Dec 2025
@matthewcroughan:defenestrate.itmatthewcroughan changed their profile picture.14:57:37
@reckenrode:matrix.orgRandy Eckenrode

LTO doesn’t work, and it uses sigtool for signing. sigtool doesn’t set the linker-signed flag, which causes tools like strip to break binaries because their aren’t updated. That flag makes them update automatically.

It also historically lagged behind Apple’s releases, but I think they got better about that.

15:56:23

Show newer messages


Back to Room ListRoom Version: 6