From: Cheng Zhao Date: Wed, 8 Apr 2015 14:05:33 +0000 (+0800) Subject: mac: Fix linking error when running chromedriver X-Git-Tag: v0.23.0~5^2~28 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4bb0ac271b3cb6bb2661dbc4cd50f6eae8ddde4f;p=electron.git mac: Fix linking error when running chromedriver --- diff --git a/script/create-dist.py b/script/create-dist.py index e3ff67ed..a66795f4 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():