summaryrefslogtreecommitdiff
path: root/uhd-4.2.0.0-imagepath-fix.patch
blob: 7230a92d746cb988183cf0c221089c41c6cd8d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp
index 73b4cc2..a122c9d 100644
--- a/host/lib/utils/paths.cpp
+++ b/host/lib/utils/paths.cpp
@@ -290,7 +290,7 @@ std::string uhd::get_pkg_path(void)
 
 std::string uhd::get_lib_path(void)
 {
-    fs::path runtime_libfile_path = boost::dll::this_line_location();
+    fs::path runtime_libfile_path = "/usr" / boost::dll::this_line_location();
     // Normalize before decomposing path so result is reliable
     fs::path lib_path = runtime_libfile_path.lexically_normal().parent_path();
     return lib_path.string();