3 ms·
I’m using musl to cross-compile static Windows binaries from Mac for my app [0]. Here’s the instructions I use for it: https://blog.filippo.io/easy-windows-and-
by rolleiflex 8y ago
I’m using musl to cross-compile static Windows binaries from Mac for my app [0]. Here’s the instructions I use for it: https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ https://blog.filippo.io/easy-windows-and-linux-cross-compile...
I’ve been using this in real world production builds and I’ve had no issues so far, I compile SQLite with it as it’s my main C dependency. No slowdowns, nothing weird happening, it just works like a champ. Very impressive.
[0] (Obvious disclosure, I’m the developer) https://getaether.net https://getaether.net
- ploxiln 8y agocorrect me if I'm wrong: mingw-w64 has nothing to do with musl libc, which is exclusively for Linux
- rolleiflex 8y agoAh - the article explains how to cross compile via musl. The article mentions doing it for Linux, I am using a similar process for Windows. The article also recommends mingw for Windows, but that is unrelated.
- writepub 8y agoThis is great! Thank you for the work and information on how to use it. Have you been able to get musl-libc to compile on and for Mac OSX/iOS, along with a supported musl-gcc-wrapper? The thought of a completely statically linked, self contained binary/library for Mac/iOS is salivating
- rolleiflex 8y agoNo unfortunately, I’ve not needed that, since my native development environment is Mac and I need cross compile the other way round. I don’t see why it should not work theoretically, but my interpretation is that Apple’s licenses for Cocoa / iOS do not allow that.