It's getting out of topic, but here's the size comparison between static binaries created by glibc, uclibc and musl-libc (the binary itself does absolutely nothing) - it shows you the smallest possible size of static compile using these 3 libraries:
Code: Select all
echo "main(){}" > a.c
gcc -static -s -o a-glibc a.c
aboriginal/x86_64-gcc -static -s -o a-uclibc a.c
musl-gcc -static -s -o a-musl a.c
ls -lS a-*
-rwxr-xr-x 1 root root 660592 Apr 9 23:49 a-glibc
-rwxr-xr-x 1 root root 6576 Apr 9 23:49 a-uclibc
-rwxr-xr-x 1 root root 2552 Apr 9 23:49 a-musl