Issue an error message if -static and -shared are used together.
authorNick Clifton <nickc@redhat.com>
Mon, 20 Dec 2004 15:16:06 +0000 (15:16 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Dec 2004 15:16:06 +0000 (15:16 +0000)
ld/ChangeLog
ld/ldmain.c

index f5ef3a7a026abfa673079337166b94f268503416..b8a5e7d1ef3e7d26335803a1602fc4c76be2db25 100644 (file)
@@ -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.
index 04672f3b5d3e157891bd4bd5d5d34aedfaecd7da..ca532515a465f5e8ae61f497a2b38180c0cd7594 100644 (file)
@@ -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)
This page took 0.04221 seconds and 4 git commands to generate.