mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
Issue an error message if -static and -shared are used together.
This commit is contained in:
@ -370,6 +370,9 @@ main (int argc, char **argv)
|
||||
einfo (_("%P%F: -r and -shared may not be used together\n"));
|
||||
}
|
||||
|
||||
if (!config.dynamic_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)
|
||||
|
Reference in New Issue
Block a user