Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(470)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 843583006: GN: Add -Wl,-z defs on linux and fix errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 cflags += [ 294 cflags += [
295 "-fPIC", 295 "-fPIC",
296 "-pipe", # Use pipes for communicating between sub-processes. Faster. 296 "-pipe", # Use pipes for communicating between sub-processes. Faster.
297 ] 297 ]
298 298
299 ldflags += [ 299 ldflags += [
300 "-fPIC", 300 "-fPIC",
301 "-Wl,-z,noexecstack", 301 "-Wl,-z,noexecstack",
302 "-Wl,-z,now", 302 "-Wl,-z,now",
303 "-Wl,-z,relro", 303 "-Wl,-z,relro",
304 "-Wl,-z,defs",
Nico 2015/01/15 23:35:07 Did you try an android build?
304 ] 305 ]
305 } 306 }
306 307
307 # Linux-specific compiler flags setup. 308 # Linux-specific compiler flags setup.
308 # ------------------------------------ 309 # ------------------------------------
309 if (is_linux) { 310 if (is_linux) {
310 cflags += [ "-pthread" ] 311 cflags += [ "-pthread" ]
311 ldflags += [ "-pthread" ] 312 ldflags += [ "-pthread" ]
312 } 313 }
313 if (use_gold) { 314 if (use_gold) {
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
986 cflags += [ "-gsplit-dwarf" ] 987 cflags += [ "-gsplit-dwarf" ]
987 } 988 }
988 } 989 }
989 } 990 }
990 991
991 config("no_symbols") { 992 config("no_symbols") {
992 if (!is_win) { 993 if (!is_win) {
993 cflags = [ "-g0" ] 994 cflags = [ "-g0" ]
994 } 995 }
995 } 996 }
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | chrome/browser/ui/libgtk2ui/BUILD.gn » ('j') | chrome/renderer/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698