--- v8/BUILD.gn.orig 2021-01-25 11:27:01 UTC +++ v8/BUILD.gn @@ -4072,9 +4072,15 @@ v8_component("v8_libbase") { } } - if (is_linux || is_chromeos) { + if (is_bsd) { sources += [ "src/base/debug/stack_trace_posix.cc", + "src/base/platform/platform-freebsd.cc", + ] + libs = [ "rt", "execinfo" ] + } else if (is_linux || is_chromeos) { + sources += [ + "src/base/debug/stack_trace_posix.cc", "src/base/platform/platform-linux.cc", ] @@ -4480,6 +4486,7 @@ if (current_toolchain == v8_generator_toolchain) { "src/interpreter/bytecodes.cc", "src/interpreter/bytecodes.h", ] + libs = ["execinfo"] configs = [ ":internal_config_base" ]