| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 # This config causes functions not to be automatically exported from shared | 5 # This config causes functions not to be automatically exported from shared |
| 6 # libraries. By default, all symbols are exported but this means there are | 6 # libraries. By default, all symbols are exported but this means there are |
| 7 # lots of exports that slow everything down. In general we explicitly mark | 7 # lots of exports that slow everything down. In general we explicitly mark |
| 8 # which functiosn we want to export from components. | 8 # which functiosn we want to export from components. |
| 9 # | 9 # |
| 10 # Some third_party code assumes all functions are exported so this is separated | 10 # Some third_party code assumes all functions are exported so this is separated |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 ldflags = [ | 24 ldflags = [ |
| 25 "-Bdynamic", | 25 "-Bdynamic", |
| 26 "-Wl,-z,nocopyreloc", | 26 "-Wl,-z,nocopyreloc", |
| 27 ] | 27 ] |
| 28 } else { | 28 } else { |
| 29 # Android doesn't support rpath. | 29 # Android doesn't support rpath. |
| 30 ldflags = [ | 30 ldflags = [ |
| 31 # Want to pass "\$". GN will re-escape as required for ninja. | 31 # Want to pass "\$". GN will re-escape as required for ninja. |
| 32 "-Wl,-rpath=\$ORIGIN/", | 32 "-Wl,-rpath=\$ORIGIN/", |
| 33 "-Wl,-rpath-link=", | 33 "-Wl,-rpath-link=", |
| 34 "-Wl,-z,origin", |
| 34 | 35 |
| 35 # Newer binutils don't set DT_RPATH unless you disable "new" dtags | 36 # Newer binutils don't set DT_RPATH unless you disable "new" dtags |
| 36 # and the new DT_RUNPATH doesn't work without --no-as-needed flag. | 37 # and the new DT_RUNPATH doesn't work without --no-as-needed flag. |
| 37 "-Wl,--disable-new-dtags", | 38 "-Wl,--disable-new-dtags", |
| 38 ] | 39 ] |
| 39 } | 40 } |
| 40 } | 41 } |
| 41 | 42 |
| 42 config("no_exceptions") { | 43 config("no_exceptions") { |
| 43 no_exceptions_flags = [ "-fno-exceptions" ] | 44 no_exceptions_flags = [ "-fno-exceptions" ] |
| 44 cflags_cc = no_exceptions_flags | 45 cflags_cc = no_exceptions_flags |
| 45 cflags_objcc = no_exceptions_flags | 46 cflags_objcc = no_exceptions_flags |
| 46 } | 47 } |
| OLD | NEW |