From 4bb0ac271b3cb6bb2661dbc4cd50f6eae8ddde4f Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 8 Apr 2015 22:05:33 +0800 Subject: [PATCH] mac: Fix linking error when running chromedriver --- script/create-dist.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/create-dist.py b/script/create-dist.py index e3ff67ed4..a66795f42 100755 --- a/script/create-dist.py +++ b/script/create-dist.py @@ -124,6 +124,12 @@ def copy_chromedriver(): # Fix the linking with boringssl. if TARGET_PLATFORM == 'linux': execute(['chrpath', '-r', '$ORIGIN', dest]) + elif TARGET_PLATFORM == 'darwin': + shutil.copy2(os.path.join(CHROMIUM_DIR, 'libboringssl.dylib'), DIST_DIR) + execute(['install_name_tool', '-change', + '/usr/local/lib/libboringssl.dylib', + '@loader_path/libboringssl.dylib', + dest]) def copy_license():