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:
Riku Palomäki 2019-02-27 19:16:35 +00:00 committed by Marshall Greenblatt
parent 5f615a95bc
commit 7f1453b294
1 changed files with 7 additions and 1 deletions

View File

@ -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.
configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
}