Use absolute path for @loader_path libs

This commit is contained in:
John Maguire 2020-08-25 18:41:20 +01:00 committed by John Maguire
parent c1b15beb5e
commit 16843da416
1 changed files with 5 additions and 5 deletions

10
dist/macdeploy.py vendored
View File

@ -200,11 +200,11 @@ def GetBrokenLibraries(binary):
elif re.match(r'Breakpad', line):
continue # Manually added by cmake.
elif re.match(r'^\s*@loader_path', line):
# abs_path = os.path.join(
# os.path.dirname(binary),
# *os.path.split(line)[1:],
# )
broken_libs['libs'].append(line)
abs_path = os.path.join(
os.path.dirname(binary),
*os.path.split(line)[1:],
)
broken_libs['libs'].append(abs_path)
elif re.match(r'^\s*@executable_path', line):
# Potentially already fixed library
relative_path = os.path.join(*line.split('/')[3:])