Re: Stop the linker's --dependency-file option from including temporary lto files.
authorAlan Modra <amodra@gmail.com>
Wed, 5 Jul 2023 12:03:01 +0000 (21:33 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 6 Jul 2023 01:09:40 +0000 (10:39 +0930)
PR 30568
* ldfile.c (ldfile_try_open_bfd): Fix build failure when
!BFD_SUPPORTS_PLUGINS.

ld/ldfile.c

index c8a6874978b3653143dc81b40d02028d6c27433d..9d9c036dfab55eabb777970a4b9dec337377bdb6 100644 (file)
@@ -353,7 +353,9 @@ ldfile_try_open_bfd (const char *attempt,
     }
 
   /* PR 30568: Do not track lto generated temporary object files.  */
+#if BFD_SUPPORTS_PLUGINS
   if (!entry->flags.lto_output)
+#endif
     track_dependency_files (attempt);
 
   /* Linker needs to decompress sections.  */