In fact, -static gcc flag on Linux doesn\'t work now. Let me cite from the GNU libc FAQ:
2.22. Even statically linked programs need s
Just because you have to dynamically link to the NSS service doesn't mean you can't statically link to any other library. All that FAQ is saying is that even "statically" linked programs have some dynamically-linked libraries. It's not saying that static linking is "impossible" or that it "doesn't work".