From: David Edelsohn Date: Tue, 19 Jun 2018 22:42:37 +0000 (-0400) Subject: Wrap is_static with COLLECT_EXPORT_LIST X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e56f46058f68aa439a7e6a323747877ee9c255eb;p=gcc.git Wrap is_static with COLLECT_EXPORT_LIST From-SVN: r261775 --- diff --git a/gcc/collect2.c b/gcc/collect2.c index 783dce8fac5..a96af137a44 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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) {