]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Wrap is_static with COLLECT_EXPORT_LIST
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jun 2018 22:42:37 +0000 (22:42 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jun 2018 22:42:37 +0000 (22:42 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@261775 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/collect2.c

index 783dce8fac5124728a23af0b49e4aaa704ce32fd..a96af137a44c8adc0c320b181eda0ceb92b626d4 100644 (file)
@@ -911,7 +911,9 @@ main (int argc, char **argv)
   int first_file;
   int num_c_args;
   char **old_argv;
+#ifdef COLLECT_EXPORT_LIST
   bool is_static = false;
+#endif
   int i;
 
   for (i = 0; i < USE_LD_MAX; i++)
@@ -1272,7 +1274,9 @@ main (int argc, char **argv)
   /* Parse arguments.  Remember output file spec, pass the rest to ld.  */
   /* After the first file, put in the c++ rt0.  */
 
+#ifdef COLLECT_EXPORT_LIST
   is_static = static_obj;
+#endif
   first_file = 1;
   while ((arg = *++argv) != (char *) 0)
     {