uhd/uhd-4.2.0.0-imagepath-fix.p...

14 lines
581 B
Diff
Raw Normal View History

2022-01-28 23:40:07 +00:00
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp
2022-04-21 13:04:27 +00:00
index 73b4cc2..a122c9d 100644
2022-01-28 23:40:07 +00:00
--- a/host/lib/utils/paths.cpp
+++ b/host/lib/utils/paths.cpp
2022-04-21 13:04:27 +00:00
@@ -290,7 +290,7 @@ std::string uhd::get_pkg_path(void)
2022-01-28 23:40:07 +00:00
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();
2022-04-21 13:04:27 +00:00
// Normalize before decomposing path so result is reliable
2022-01-28 23:40:07 +00:00
fs::path lib_path = runtime_libfile_path.lexically_normal().parent_path();
return lib_path.string();