News for hackers. Stuff that matters.
Re:Why Apple Chose Clang (2008) by jcelerier on Wednesday January 13, 2021 @05:26AM (#25760285)
the problem is that macos's kernel API isn't stable at all (like, even across minor macOS versions, and I have heard rumors that different mac hardware may get different kernels... though not sure about that one). So you can't statically link libc / libSystem unless you want your app to only work on one machine.
Re:Why Apple Chose Clang (2008) by dilyevsky on Wednesday January 13, 2021 @12:10PM (#25764952)
Yeah I’m actually fine with that part. Even application level libs are still mostly dynamically linked and you can’t for example take a .dylib and link it statically (not with standard tooling at least)
Re:Why Apple Chose Clang (2008) by jcelerier on Wednesday January 13, 2021 @05:16PM (#25768707)
... what do you mean then ? static linking your own dependencies does not require anything specific. I ship an app that statically links qt, ffmpeg, llvm, and a few other massive libs without issues.