| 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 (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ] | 304 ] |
| 305 if (!using_sanitizer) { | 305 |
| 306 # TODO(zork): The mipsel build is broken in ffmpeg, guard this flag for now |
| 307 # to hide the breakage. https://crbug.com/450771 |
| 308 if (!using_sanitizer && cpu_arch != "mipsel") { |
| 306 ldflags += [ "-Wl,-z,defs" ] | 309 ldflags += [ "-Wl,-z,defs" ] |
| 307 } | 310 } |
| 308 } | 311 } |
| 309 | 312 |
| 310 # Linux-specific compiler flags setup. | 313 # Linux-specific compiler flags setup. |
| 311 # ------------------------------------ | 314 # ------------------------------------ |
| 312 if (is_linux) { | 315 if (is_linux) { |
| 313 cflags += [ "-pthread" ] | 316 cflags += [ "-pthread" ] |
| 314 ldflags += [ "-pthread" ] | 317 ldflags += [ "-pthread" ] |
| 315 } | 318 } |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 cflags += [ "-gsplit-dwarf" ] | 992 cflags += [ "-gsplit-dwarf" ] |
| 990 } | 993 } |
| 991 } | 994 } |
| 992 } | 995 } |
| 993 | 996 |
| 994 config("no_symbols") { | 997 config("no_symbols") { |
| 995 if (!is_win) { | 998 if (!is_win) { |
| 996 cflags = [ "-g0" ] | 999 cflags = [ "-g0" ] |
| 997 } | 1000 } |
| 998 } | 1001 } |
| OLD | NEW |