mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -04:00
32 lines
872 B
Text
32 lines
872 B
Text
--- v8/BUILD.gn.orig 2019-03-11 22:08:08 UTC
|
|
+++ v8/BUILD.gn
|
|
@@ -3160,7 +3160,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",
|
|
@@ -3180,6 +3180,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 = [
|
|
@@ -3384,6 +3390,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapsho
|
|
"src/snapshot/embedded-file-writer.h",
|
|
"src/snapshot/mksnapshot.cc",
|
|
]
|
|
+ libs = ["execinfo"]
|
|
|
|
configs = [ ":internal_config" ]
|
|
|