From aea90eb6bbe86c0adbd8927351c5e89b300fed11 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Tue, 25 Aug 2020 18:05:03 +0100 Subject: [PATCH] Munge mac libraries with @loader_path --- dist/macdeploy.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/macdeploy.py b/dist/macdeploy.py index 1e6f4cba7..e89bfc314 100755 --- a/dist/macdeploy.py +++ b/dist/macdeploy.py @@ -199,8 +199,13 @@ def GetBrokenLibraries(binary): continue # unix style system library elif re.match(r'Breakpad', line): continue # Manually added by cmake. - elif re.match(r'^\s*@executable_path', line) or re.match( - r'^\s*@loader_path', line): + 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) + elif re.match(r'^\s*@executable_path', line): # Potentially already fixed library relative_path = os.path.join(*line.split('/')[3:]) if not os.path.exists(os.path.join(frameworks_dir, relative_path)):