summaryrefslogtreecommitdiff
path: root/devel/electron7/files/patch-v8_BUILD.gn
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
commit26b4c8f71f91d22e081b27814782686edde0c90a (patch)
tree1c321c39372c25d8634e75b5c8e08edc676b296d /devel/electron7/files/patch-v8_BUILD.gn
parentNew port: math/py-optuna: A hyperparameter optimization framework (diff)
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed With hat: portmgr
Diffstat (limited to 'devel/electron7/files/patch-v8_BUILD.gn')
-rw-r--r--devel/electron7/files/patch-v8_BUILD.gn32
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/electron7/files/patch-v8_BUILD.gn b/devel/electron7/files/patch-v8_BUILD.gn
new file mode 100644
index 000000000000..c476c1943f95
--- /dev/null
+++ b/devel/electron7/files/patch-v8_BUILD.gn
@@ -0,0 +1,32 @@
+--- v8/BUILD.gn.orig 2019-12-16 13:32:59 UTC
++++ v8/BUILD.gn
+@@ -3592,7 +3592,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",
+@@ -3612,6 +3612,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 = [
+@@ -3862,6 +3868,7 @@ if (v8_use_snapshot && current_toolchain == v8_snapsho
+ "src/snapshot/embedded/platform-embedded-file-writer-win.h",
+ "src/snapshot/mksnapshot.cc",
+ ]
++ libs = ["execinfo"]
+
+ configs = [ ":internal_config" ]
+