diff options
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index 08b67fd..069c138 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -792,6 +792,9 @@ General_options::finalize() this->add_sysroot(); // Now that we've normalized the options, check for contradictory ones. + if (this->shared() && this->is_static()) + gold_fatal(_("-shared and -static are incompatible")); + if (this->shared() && this->relocatable()) gold_fatal(_("-shared and -r are incompatible")); |