From 3375de8fc43bb75659b3e33742561dfd2b3ae386 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Mon, 3 Sep 2018 23:32:07 +0200 Subject: [PATCH] Fix path calculation --- src/core/appdir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/appdir.cpp b/src/core/appdir.cpp index 731a2c7..27dfbd9 100644 --- a/src/core/appdir.cpp +++ b/src/core/appdir.cpp @@ -420,7 +420,7 @@ namespace linuxdeploy { rpathDestination = destination.parent_path().string(); } - auto relPath = bf::relative(bf::absolute(appDirPath) / ("usr/lib" + libSuffix), bf::absolute(rpathDestination)); + auto relPath = bf::relative(bf::absolute(appDirPath) / "usr" / getLibraryDirName(path)), bf::absolute(rpathDestination)); rpath = "$ORIGIN/" + relPath.string(); }