OLD | NEW |
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 (cpu_arch == "mipsel" || cpu_arch == "mips64el") { | 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { |
10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 "-fPIC", | 343 "-fPIC", |
344 "-pipe", # Use pipes for communicating between sub-processes. Faster. | 344 "-pipe", # Use pipes for communicating between sub-processes. Faster. |
345 ] | 345 ] |
346 | 346 |
347 ldflags += [ | 347 ldflags += [ |
348 "-fPIC", | 348 "-fPIC", |
349 "-Wl,-z,noexecstack", | 349 "-Wl,-z,noexecstack", |
350 "-Wl,-z,now", | 350 "-Wl,-z,now", |
351 "-Wl,-z,relro", | 351 "-Wl,-z,relro", |
352 ] | 352 ] |
353 | 353 if (!using_sanitizer) { |
354 # TODO(zork): The mipsel build is broken in ffmpeg, guard this flag for now | |
355 # to hide the breakage. https://crbug.com/450771 | |
356 if (!using_sanitizer && cpu_arch != "mipsel") { | |
357 ldflags += [ "-Wl,-z,defs" ] | 354 ldflags += [ "-Wl,-z,defs" ] |
358 } | 355 } |
359 } | 356 } |
360 | 357 |
361 # Linux-specific compiler flags setup. | 358 # Linux-specific compiler flags setup. |
362 # ------------------------------------ | 359 # ------------------------------------ |
363 if (is_linux) { | 360 if (is_linux) { |
364 cflags += [ "-pthread" ] | 361 cflags += [ "-pthread" ] |
365 ldflags += [ "-pthread" ] | 362 ldflags += [ "-pthread" ] |
366 } | 363 } |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 cflags += [ "-gsplit-dwarf" ] | 1047 cflags += [ "-gsplit-dwarf" ] |
1051 } | 1048 } |
1052 } | 1049 } |
1053 } | 1050 } |
1054 | 1051 |
1055 config("no_symbols") { | 1052 config("no_symbols") { |
1056 if (!is_win) { | 1053 if (!is_win) { |
1057 cflags = [ "-g0" ] | 1054 cflags = [ "-g0" ] |
1058 } | 1055 } |
1059 } | 1056 } |
OLD | NEW |