diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-17 17:00:51 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-06-17 17:00:51 +0200 |
commit | 0490097565744b4a37de230b4d23d89902d15596 (patch) | |
tree | 3c2e12a6e87c8668b7c2de8a27d92afe4fa565a2 | |
parent | 66746cb86340aceb1fa5dec197bafbc70158c020 (diff) |
Link shared libraries with absolute path
-rw-r--r-- | build/cxx/rule.cxx | 10 |
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; |