]> Kevux Git Server - control/commit
Workaround: The compiler and linker fail to understand that compiling statically...
authorKevin Day <Kevin@kevux.org>
Thu, 8 May 2025 04:53:07 +0000 (23:53 -0500)
committerKevin Day <Kevin@kevux.org>
Thu, 8 May 2025 04:53:07 +0000 (23:53 -0500)
commitdd8f82542f3c23b98bbf6a442f78791763272495
tree36126ba16849ef694c758197a7e4bfda107ce6fe
parent5937247dcd47ec5206327b23015b2c0e4c794d78
Workaround: The compiler and linker fail to understand that compiling statically should also link statically.

This is a logic or design flaw that is just plain idiotic.
When compiling statically (passing `-static`), there cannot be any shared/dynamic linked data.

Rather than recognizing this, if there is a shared library during a static build then the shared library is linked to.

The compiler and linker, at least, supports explicitly forcing the point that a static library is to be linked.
This is done via `-l:libc.a` for libc linking rather than `-lc`.

This should not be necessary, but it unfortunately is.
data/build/settings
data/build/settings.control