mirror of
https://github.com/niess/python-appimage.git
synced 2025-08-09 04:01:33 +02:00
Merge branch 'master' into dev
This commit is contained in:
@@ -98,7 +98,7 @@ def patch_binary(path, libdir, recursive=True):
|
||||
rpath = '\'' + system((PATCHELF, '--print-rpath', path)) + '\''
|
||||
relpath = os.path.relpath(libdir, os.path.dirname(path))
|
||||
relpath = '' if relpath == '.' else '/' + relpath
|
||||
expected = '\'$ORIGIN' + relpath + '\''
|
||||
expected = '\'$ORIGIN' + relpath + ':$ORIGIN/../lib\''
|
||||
if rpath != expected:
|
||||
system((PATCHELF, '--set-rpath', expected, path))
|
||||
|
||||
|
Reference in New Issue
Block a user