From: Alan Modra Date: Wed, 5 Jul 2023 12:03:01 +0000 (+0930) Subject: Re: Stop the linker's --dependency-file option from including temporary lto files. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f60df9974516867c02562b56c3a98cf4714a915;p=binutils-gdb.git Re: Stop the linker's --dependency-file option from including temporary lto files. PR 30568 * ldfile.c (ldfile_try_open_bfd): Fix build failure when !BFD_SUPPORTS_PLUGINS. --- diff --git a/ld/ldfile.c b/ld/ldfile.c index c8a6874978b..9d9c036dfab 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -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. */