]> Kevux Git Server - kevux-tools/commit
Workaround: The compiler and linker fail to understand that compiling statically...
authorKevin Day <Kevin@kevux.org>
Thu, 8 May 2025 04:53:19 +0000 (23:53 -0500)
committerKevin Day <Kevin@kevux.org>
Thu, 8 May 2025 04:53:19 +0000 (23:53 -0500)
commite0de8351c3cf528f23f07c6a2582aa94cb179f49
treec6994792ef9b63bf678c3a2d5a4b06197b2d11df
parent6839da8e9fb82069a0cc80992d5cd5f5c25fa701
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/remove/settings
data/build/remove/settings.remove
data/build/remove/settings.rm
data/build/remove/settings.rmdir
data/build/remove/settings.unlink
data/build/tacocat/settings
data/build/tacocat/settings.tacocat