mac: Fix linking error when running chromedriver

This commit is contained in:
Cheng Zhao 2015-04-08 22:05:33 +08:00
Родитель 565065ed6b
Коммит 4bb0ac271b
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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():