diff options
author | brettw <brettw@chromium.org> | 2015-05-12 18:53:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-13 01:53:59 +0000 |
commit | bb11c4eca85b840a75450125d530c50fed5f48e8 (patch) | |
tree | 20eee48dbe6ec1dcada388fe34e1dcd01aca93fc /chrome/BUILD.gn | |
parent | e930ecb0917c32fcd04df7976a8be66b4d66f128 (diff) | |
download | chromium_src-bb11c4eca85b840a75450125d530c50fed5f48e8.zip chromium_src-bb11c4eca85b840a75450125d530c50fed5f48e8.tar.gz chromium_src-bb11c4eca85b840a75450125d530c50fed5f48e8.tar.bz2 |
Add -pie to chrome on Linux in GN.
This matches the GYP build.
Review URL: https://codereview.chromium.org/1134833003
Cr-Commit-Position: refs/heads/master@{#329565}
Diffstat (limited to 'chrome/BUILD.gn')
-rw-r--r-- | chrome/BUILD.gn | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chrome/BUILD.gn b/chrome/BUILD.gn index f25dd9c2..77a67b1 100644 --- a/chrome/BUILD.gn +++ b/chrome/BUILD.gn @@ -116,11 +116,9 @@ if (!is_android) { # Needed for chrome_main.cc initialization of libraries. configs += [ "//build/config/linux:pangocairo" ] - # TODO(GYP) ['profiling==0 and linux_disable_pie==0', { - # 'ldflags': [ - # '-pie', - # ], - #}], + # GYP has this in a 'profiling==0 and linux_disable_pie==0' condition. + # but GN doesn't have either of these flags. + ldflags = [ "-pie" ] if (use_x11) { configs += [ |