--- v8/BUILD.gn.orig 2020-03-03 18:55:34 UTC +++ v8/BUILD.gn @@ -3561,7 +3561,7 @@ v8_component("v8_libbase") { } } - if (is_linux) { + if (is_linux && !is_bsd) { sources += [ "src/base/debug/stack_trace_posix.cc", "src/base/platform/platform-linux.cc", @@ -3581,6 +3581,12 @@ v8_component("v8_libbase") { "dl", "rt", ] + } else if (is_bsd) { + sources += [ + "src/base/debug/stack_trace_posix.cc", + "src/base/platform/platform-freebsd.cc", + ] + libs = [ "rt", "execinfo" ] } else if (is_android) { if (current_toolchain == host_toolchain) { libs = [ @@ -3840,6 +3846,7 @@ if (current_toolchain == v8_snapshot_toolchain) { "src/snapshot/mksnapshot.cc", "src/snapshot/snapshot-empty.cc", ] + libs = ["execinfo"] configs = [ ":internal_config" ]