From 74e20e445b358c2f6884ab29cd832561a178e646 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 5 Jul 2023 21:33:01 +0930 Subject: 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. (cherry picked from commit 5f60df9974516867c02562b56c3a98cf4714a915) --- ld/ldfile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld') diff --git a/ld/ldfile.c b/ld/ldfile.c index 14ba1f1..df7c9cb 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. */ -- cgit v1.1