Issue an error message if -static and -shared are used together.
This commit is contained in:
parent
fbfdf75089
commit
550bdea6de
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-12-20 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* ldmain.c (main): Issue an error message if -static and -shared
|
||||
are used together.
|
||||
|
||||
2004-12-17 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue