News for hackers. Stuff that matters.
Re:Show HN: macOS-cross-compiler – Compile binaries for macO... by weinzierl on Saturday February 17, 2024 @01:17PM (#39411859)
The link is about making Linux binaries on MacOS, which works because almost everything to build for Linux is already on OSX. The other way around it's not true. A Linux system does come neither with the OSX SDK nor the Apple patched llvm linker. I believe at least part of the required files cannot be legally distributed with a Linux system, but I might be wrong on that.
Re:Show HN: macOS-cross-compiler – Compile binaries for macO... by adastra22 on Saturday February 17, 2024 @01:44PM (#39412147)
It appears you’re right, thank you! I’m very surprised there isn’t a llvm linker available, minus all the foundation kits that rust doesn’t need.
Re:Show HN: macOS-cross-compiler – Compile binaries for macO... by weinzierl on Saturday February 17, 2024 @02:11PM (#39412413)
The llvm linker is a cross-linker in principle. I think it is more about the specialities that Apple needs, like code signing.
Re:Show HN: macOS-cross-compiler – Compile binaries for macO... by adastra22 on Saturday February 17, 2024 @03:11PM (#39413042)
Ah. For what it's worth, those have been reverse engineered and copied elsewhere. I maintain a project that does cross-compiled macOS builds and our own signing on Linux.