diff options
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gold/options.cc b/gold/options.cc index f511ba1..05b9bba 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -448,7 +448,6 @@ General_options::parse_library(const char*, const char* arg, cmdline->inputs().add_file(file); } -#ifdef ENABLE_PLUGINS void General_options::parse_plugin(const char*, const char* arg, Command_line*) @@ -464,7 +463,6 @@ General_options::parse_plugin_opt(const char*, const char* arg, { this->add_plugin_option(arg); } -#endif // ENABLE_PLUGINS void General_options::parse_R(const char* option, const char* arg, @@ -1208,6 +1206,13 @@ General_options::finalize() program_name); #endif +#ifndef ENABLE_PLUGINS + if (this->has_plugins()) + gold_fatal(_("cannot use --plugin: " + "%s was compiled without plugin support"), + program_name); +#endif + std::string libpath; if (this->user_set_Y()) { |