summaryrefslogtreecommitdiffstats
path: root/www/chromium/files/patch-v8_BUILD.gn
blob: 5388ea4fd057868de2dbebf67b9e98fbc9515328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- v8/BUILD.gn.orig	2017-03-09 20:05:30 UTC
+++ v8/BUILD.gn
@@ -2315,7 +2315,7 @@ v8_component("v8_libbase") {
     sources += [ "src/base/platform/platform-posix.cc" ]
   }
 
-  if (is_linux) {
+  if (is_linux && !is_bsd) {
     sources += [
       "src/base/debug/stack_trace_posix.cc",
       "src/base/platform/platform-linux.cc",
@@ -2325,6 +2325,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 = [
@@ -2458,6 +2464,7 @@ if (current_toolchain == v8_snapshot_too
     sources = [
       "src/snapshot/mksnapshot.cc",
     ]
+    libs = ["execinfo"]
 
     configs = [ ":internal_config" ]
 
OpenPOWER on IntegriCloud