Re:Show HN: macOS-cross-compiler – Compile binaries for macO...
by adastra22 on Saturday February 17, 2024 @01:06PM
(#39411771)
You don’t need the OSX SDK to make runnable Rust binaries from other OS: https://betterprogramming.pub/cross-compiling-rust-from-mac-...
[ Parent
| on HN ]
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.