Linux: Fix ASAN link error: odr-violation: global 'typeinfo name for std::exception' (see https://crbug.com/832808)
This commit is contained in:
parent
8235330984
commit
7f6bb962eb
8
BUILD.gn
8
BUILD.gn
|
@ -1443,6 +1443,7 @@ if (is_mac) {
|
|||
|
||||
deps = [
|
||||
":libcef_static",
|
||||
"//build/config:exe_and_shlib_deps",
|
||||
]
|
||||
|
||||
if (is_win) {
|
||||
|
@ -1463,9 +1464,12 @@ if (is_mac) {
|
|||
]
|
||||
}
|
||||
|
||||
if (is_linux && !is_debug && !using_sanitizer && use_allocator=="none") {
|
||||
if (is_linux && !is_debug && use_allocator=="none") {
|
||||
# Only export necessary symbols from libcef.so.
|
||||
# Don't do this in Debug builds because it causes the resulting application to crash.
|
||||
# Don't do this in Debug builds because it causes the resulting
|
||||
# application to crash.
|
||||
# Also need to do this for ASAN builds to work around
|
||||
# https://crbug.com/832808.
|
||||
ldflags = [ "-Wl,--version-script=" +
|
||||
rebase_path("//cef/libcef_dll/libcef.lst") ]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue