It appears Go toolchain silently uses netgo+osusergo+static
if cross-compiling but provides dynamicaly-linked executable
for native arch. Keeping track of all Linux and *BSD sysroots
is impractical so lets ship static executables where possible.
They may bot honor system DNS resolver but at least they work
everywhere.
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
From Matrix Yggdrasil developer room:
The only problem is on Ubuntu 20.04:
yggstack-linux-amd64: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./yggstack-linux-amd64)
yggstack-linux-amd64: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./yggstack-linux-amd64)
We do not need latest Ubuntu as we dont use external linking in static binaries.
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>