aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2018-03-27 17:49:49 -0700
committerCary Coutant <ccoutant@gmail.com>2018-03-28 14:02:41 -0700
commit24538276c675851520d45714661e7cf9bedd55bb (patch)
tree6790f4d6a402478a83ec0d75c5cac8bf27eb3a42 /gold/options.h
parent8205a328f8b852086652841dfc2aff4ca0b16d45 (diff)
downloadgdb-24538276c675851520d45714661e7cf9bedd55bb.zip
gdb-24538276c675851520d45714661e7cf9bedd55bb.tar.gz
gdb-24538276c675851520d45714661e7cf9bedd55bb.tar.bz2
Use top-level config support for enabling plugins.
Also recognizes --plugin options when plugins are disabled. 2018-03-28 Cary Coutant <ccoutant@gmail.com> gold/ PR gold/21423 PR gold/22500 * configure.ac: Call AC_USE_SYSTEM_EXTENSIONS. Replace check for --enable-plugins with AC_PLUGINS. * options.cc (parse_plugin, parse_plugin_opt): Remove #ifdef. (General_options::finalize): Check if plugins enabled. * options.h (--plugin, --plugin-opt): Define even if plugins not enabled. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index e75a8bd..98d6be8 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -1125,6 +1125,12 @@ class General_options
N_("Load a plugin library"), N_("PLUGIN"));
DEFINE_special(plugin_opt, options::TWO_DASHES, '\0',
N_("Pass an option to the plugin"), N_("OPTION"));
+#else
+ DEFINE_special(plugin, options::TWO_DASHES, '\0',
+ N_("Load a plugin library (not supported)"), N_("PLUGIN"));
+ DEFINE_special(plugin_opt, options::TWO_DASHES, '\0',
+ N_("Pass an option to the plugin (not supported)"),
+ N_("OPTION"));
#endif
DEFINE_bool(posix_fallocate, options::TWO_DASHES, '\0', true,