Linux: Fix cefclient when using component build and tcmalloc.
Link to libbase.so to fix FATAL:content_main_runner_impl.cc(731)] Check failed: base::allocator::IsAllocatorInitialized().
This commit is contained in:
parent
5f615a95bc
commit
7f1453b294
8
BUILD.gn
8
BUILD.gn
|
@ -2092,7 +2092,13 @@ if (is_mac) {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_component_build) {
|
if (is_component_build) {
|
||||||
|
if (use_allocator=="tcmalloc") {
|
||||||
|
# Link to base to initialize tcmalloc allocator shims, otherwise
|
||||||
|
# base::allocator::IsAllocatorInitialized check fails
|
||||||
|
deps += [ "//base" ]
|
||||||
|
}
|
||||||
|
} else {
|
||||||
# Set rpath to find our own libfreetype even in a non-component build.
|
# Set rpath to find our own libfreetype even in a non-component build.
|
||||||
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue