From 0490097565744b4a37de230b4d23d89902d15596 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 Jun 2015 17:00:51 +0200 Subject: Link shared libraries with absolute path --- build/cxx/rule.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'build/cxx') 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 ())) ; else if ((ppt = pt->is_a ())) - ; + { + // 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; -- cgit v1.1