]> Kevux Git Server - controller/commit
Workaround: The compiler and linker fail to understand that compiling statically...
authorKevin Day <Kevin@kevux.org>
Thu, 8 May 2025 04:52:33 +0000 (23:52 -0500)
committerKevin Day <Kevin@kevux.org>
Thu, 8 May 2025 04:52:33 +0000 (23:52 -0500)
commit4f4dbee4c3e481bc152dcdbc51b2ff3504140707
treeaaa32d414b4b35080d24dd80fade1a129079eb05
parentf3bba73e9fa16b70966871dd42abd86ffaf2aefd
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.controller
data/build/settings.init