| OLD | NEW |
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client 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/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 | 6 |
| 7 # Native Client Definitions | 7 # Native Client Definitions |
| 8 config("nacl_defines") { | 8 config("nacl_defines") { |
| 9 defines = [ | 9 if (is_linux || is_android || is_nacl) { |
| 10 "_DEFAULT_SOURCE=1", | 10 defines = [ |
| 11 "_BSD_SOURCE=1", | 11 "_POSIX_C_SOURCE=199506", |
| 12 "_POSIX_C_SOURCE=199506", | 12 "_XOPEN_SOURCE=600", |
| 13 "_XOPEN_SOURCE=600", | 13 "_GNU_SOURCE=1", |
| 14 "_GNU_SOURCE=1", | 14 "__STDC_LIMIT_MACROS=1", |
| 15 "__STDC_LIMIT_MACROS=1", | 15 ] |
| 16 ] | 16 } |
| 17 } | 17 } |
| 18 | 18 |
| 19 config("nexe_defines") { | 19 config("nexe_defines") { |
| 20 defines = [ | 20 defines = [ |
| 21 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 21 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 22 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", | 22 "DYNAMIC_ANNOTATIONS_PREFIX=NACL_", |
| 23 ] | 23 ] |
| 24 } | 24 } |
| 25 | 25 |
| 26 # The base target that all targets in the NaCl build should depend on. | 26 # The base target that all targets in the NaCl build should depend on. |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 "-Os", | 86 "-Os", |
| 87 | 87 |
| 88 # These are omitted from non-IRT libraries to keep the libraries | 88 # These are omitted from non-IRT libraries to keep the libraries |
| 89 # themselves small. | 89 # themselves small. |
| 90 "-ffunction-sections", | 90 "-ffunction-sections", |
| 91 "-fdata-sections", | 91 "-fdata-sections", |
| 92 ] | 92 ] |
| 93 | 93 |
| 94 ldflags = [ "-Wl,--gc-sections" ] | 94 ldflags = [ "-Wl,--gc-sections" ] |
| 95 } | 95 } |
| OLD | NEW |