aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-17 17:00:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-17 17:00:51 +0200
commit0490097565744b4a37de230b4d23d89902d15596 (patch)
tree3c2e12a6e87c8668b7c2de8a27d92afe4fa565a2
parent66746cb86340aceb1fa5dec197bafbc70158c020 (diff)
Link shared libraries with absolute path
-rw-r--r--build/cxx/rule.cxx10
1 files changed, 9 insertions, 1 deletions
diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx
index ebb95b9..d5a9b9c 100644
--- a/build/cxx/rule.cxx
+++ b/build/cxx/rule.cxx
@@ -935,7 +935,15 @@ namespace build
else if ((ppt = pt->is_a<liba> ()))
;
else if ((ppt = pt->is_a<libso> ()))
- ;
+ {
+ // Use absolute path for the shared libraries since that's
+ // the path the runtime loader will use to try to find it.
+ // This is probably temporary until we get into the whole
+ // -soname/-rpath mess.
+ //
+ args.push_back (ppt->path ().string ().c_str ());
+ continue;
+ }
else
continue;