Skip to content

Commit

Permalink
Use absolute path for @loader_path libs
Browse files Browse the repository at this point in the history
  • Loading branch information
hatstand committed Aug 25, 2020
1 parent c1b15be commit 16843da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dist/macdeploy.py
Expand Up @@ -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:])
Expand Down

0 comments on commit 16843da

Please sign in to comment.