http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49811
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-07-23 22:19:20 UTC --- "-shared -static" does not make sense really. Are you trying to compile a libary that contains all other libraries compiled staticly? If so then "-shared -static" makes sense. It does not produce an application but rather a shared library.