Index: content/shell/BUILD.gn |
diff --git a/content/shell/BUILD.gn b/content/shell/BUILD.gn |
index 9b7f85a2040cfe8184d73ca64ee3a17acf98301a..dc04ca39ab0211c863193c8f2c95d986fec4177c 100644 |
--- a/content/shell/BUILD.gn |
+++ b/content/shell/BUILD.gn |
@@ -621,10 +621,7 @@ if (is_mac) { |
deps += [ ":content_shell_framework_plugins" ] |
} |
- ldflags = [ |
- "-install_name", |
- "@executable_path/../Frameworks/$output_name.framework/$output_name", |
- ] |
+ ldflags = [ "-Wl,-install_name,@executable_path/../Frameworks/$output_name.framework/$output_name" ] |
info_plist_target = ":content_shell_framework_plist" |
} |
@@ -650,6 +647,12 @@ if (is_mac) { |
deps = [ |
":content_shell_framework+link", |
] |
+ ldflags = [ |
+ # The helper is in Content Shell.app/Contents/Frameworks/Content Shell Helper.app/Contents/MacOS/ |
+ # so set rpath up to the base. |
+ "-rpath", |
+ "@loader_path/../../../../../..", |
+ ] |
info_plist_target = ":content_shell_helper_plist" |
} |