This fixes a compilation error for FreeBSD because due to -Werror, the
missing main symbol (due to -Dshared) would break the build of
libk.so.
Note that I've only tested cross compilation to FreeBSD, not execution.
In principle the equivalent change should aslo be testable for anything that uses libk.so on Linux, but I don't have such an application on hand.
This fixes a compilation error for FreeBSD because due to -Werror, the
missing `main` symbol (due to `-Dshared`) would break the build of
`libk.so`.
Note that I've only tested cross compilation to FreeBSD, not execution.
In principle the equivalent change should aslo be testable for anything that uses libk.so on Linux, but I don't have such an application on hand.