--- ld/ldmain.c.mps Fri Nov 26 09:54:32 2004 +++ ld/ldmain.c Fri Nov 26 09:56:36 2004 @@ -370,6 +370,9 @@ einfo (_("%P%F: -r and -shared may not be used together\n")); } + if (link_info.static_link) && (link_info.shared) + einfo (_("%P%F: -static and -shared may not be used together\n")); + if (! link_info.shared) { if (command_line.filter_shlib)