| Index: chrome/BUILD.gn
|
| diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn
|
| index 302a086e1eb49a00de7d82ea20e23bf0dad72de4..b4f53aeac8ea3b73665c19d59425a3c3f7eb2299 100644
|
| --- a/chrome/BUILD.gn
|
| +++ b/chrome/BUILD.gn
|
| @@ -679,12 +679,16 @@ if (is_win) {
|
| "//chrome/common:version_header",
|
| ]
|
|
|
| - ldflags = [
|
| - # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Conents/MacOS/
|
| - # so set rpath up to the base.
|
| - "-rpath",
|
| - "@loader_path/../../../../../../..",
|
| - ]
|
| + ldflags = []
|
| +
|
| + if (is_component_build) {
|
| + ldflags += [
|
| + # The helper is in Chromium.app/Contents/Versions/X/Chromium Helper.app/Conents/MacOS/
|
| + # so set rpath up to the base.
|
| + "-rpath",
|
| + "@loader_path/../../../../../../..",
|
| + ]
|
| + }
|
|
|
| # Remove the default strip configuration (which strips all symbols) so that
|
| # a saves file can be specified.
|
|
|