mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 12:20:14 +01:00
Add $ORIGIN/../lib to RPATH
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