The -static option will cause ld to prefer the static library alternative to the linux shared libraries, if both are installed. Lately, several major linux distros have been set up so that several of those static libraries will not be installed by default. You would need to search your linux installation media and online upgrade repositories to find them.