aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 9b0cebf..78f0b1a 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -764,6 +764,9 @@ General_options::finalize()
this->add_to_library_path_with_sysroot("/usr/lib");
}
+ if (this->shared() && !this->user_set_allow_shlib_undefined())
+ this->set_allow_shlib_undefined(true);
+
// Normalize library_path() by adding the sysroot to all directories
// in the path, as appropriate.
this->add_sysroot();