From 5f60df9974516867c02562b56c3a98cf4714a915 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 5 Jul 2023 21:33:01 +0930 Subject: [PATCH] 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. --- ld/ldfile.c | 2 ++ 1 file changed, 2 insertions(+) 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. */ -- 2.30.2