Remix.run Logo
enriquto 14 hours ago

> How is this easy, in your experience?

add -static to your link flags? Sometimes you need to fiddle a bit with the order of the libraries, but that's it.

In the ideal case, for maximum portability, i'd like to use the αpε format!

sirwhinesalot 13 hours ago | parent [-]

Have you actually tried to make a fully statically linked GUI app on Linux?

enriquto 10 hours ago | parent [-]

Just did it!

I had to add "-static" to LDFLAGS and "-lxcb -lXau -lXdmcp" to LDLIBS, for an increase in binary size from 1MB to 3MB. It's a plain X program, i guess if you use fancy toolkits it may be harder.

brnt 8 hours ago | parent [-]

If anything more than plain X is fancy to you...