diff options
author | David Edelsohn <dje@gcc.gnu.org> | 2018-06-19 18:42:37 -0400 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2018-06-19 18:42:37 -0400 |
commit | e56f46058f68aa439a7e6a323747877ee9c255eb (patch) | |
tree | 08666096dff00ece119fd858f73021205e1dd1a9 /gcc/collect2.c | |
parent | b5ebb71777112f2575c4abfc94439c7c9f13210e (diff) | |
download | gcc-e56f46058f68aa439a7e6a323747877ee9c255eb.zip gcc-e56f46058f68aa439a7e6a323747877ee9c255eb.tar.gz gcc-e56f46058f68aa439a7e6a323747877ee9c255eb.tar.bz2 |
Wrap is_static with COLLECT_EXPORT_LIST
From-SVN: r261775
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 783dce8..a96af13 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) { |