From 0381901e629115f5f0d92a27fe74b1814f6f389a Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 21 Jun 2020 14:23:46 +0930 Subject: Do without ld ENABLE_PLUGINS Instead, use BFD_SUPPORTS_PLUGINS. * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS. * ldlang.c: Likewise. * ldlang.h: Likewise. * ldlex.h: Likewise. * ldmain.c: Likewise. * lexsup.c: Likewise. * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS. * testplug.c: Likewise. * testplug2.c: Likewise. * testplug3.c: Likewise. * testplug4.c: Likewise. * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL. * Makefile.am: Remove ENABLE_PLUGINS conditionals. (PLUGIN_CFLAGS): Don't define. (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise. Substitute all uses with plugin file name. * configure: Regenerate. * Makefile.in: Regenerate. --- ld/testplug4.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ld/testplug4.c') diff --git a/ld/testplug4.c b/ld/testplug4.c index ca899b1..6e41f81 100644 --- a/ld/testplug4.c +++ b/ld/testplug4.c @@ -21,6 +21,7 @@ #include "sysdep.h" #include "bfd.h" +#if BFD_SUPPORTS_PLUGINS #include "plugin-api.h" #include "filenames.h" /* For ARRAY_SIZE macro only - we don't link the library itself. */ @@ -675,3 +676,4 @@ oncleanup (void) fflush (NULL); return cleanup_ret; } +#endif /* BFD_SUPPORTS_PLUGINS */ -- cgit v1.1