summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/chromium/Makefile6
-rw-r--r--www/chromium/files/extra-patch-libc++-new14
-rw-r--r--www/chromium/files/extra-patch-libc++-old14
3 files changed, 34 insertions, 0 deletions
diff --git a/www/chromium/Makefile b/www/chromium/Makefile
index 491c69fb5874..7960be6371fe 100644
--- a/www/chromium/Makefile
+++ b/www/chromium/Makefile
@@ -187,6 +187,12 @@ GN_ARGS+= is_clang=true
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-clang
.endif
+.if ${OSVERSION} < 1200017
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-old
+.else
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-libc++-new
+.endif
+
.if ${OSVERSION} < 1100000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-10
.endif
diff --git a/www/chromium/files/extra-patch-libc++-new b/www/chromium/files/extra-patch-libc++-new
new file mode 100644
index 000000000000..a62e8543187d
--- /dev/null
+++ b/www/chromium/files/extra-patch-libc++-new
@@ -0,0 +1,14 @@
+--- services/ui/ws/BUILD.gn.orig 2016-12-09 17:47:26.343517000 +0000
++++ services/ui/ws/BUILD.gn 2016-12-09 17:48:45.323876000 +0000
+@@ -103,6 +103,11 @@
+ "window_tree_host_factory.h",
+ ]
+
++ # Work around base r261801
++ if (is_bsd) {
++ defines = ["_LIBCPP_ABI_UNSTABLE=1"]
++ }
++
+ deps = [
+ # TODO(sad): Temporary, until the GPU process is split out of ws.
+ "//services/ui/gpu",
diff --git a/www/chromium/files/extra-patch-libc++-old b/www/chromium/files/extra-patch-libc++-old
new file mode 100644
index 000000000000..2c00e5d85679
--- /dev/null
+++ b/www/chromium/files/extra-patch-libc++-old
@@ -0,0 +1,14 @@
+--- services/ui/ws/BUILD.gn.orig 2016-12-09 17:47:26.343517000 +0000
++++ services/ui/ws/BUILD.gn 2016-12-09 17:50:06.387679000 +0000
+@@ -103,6 +103,11 @@
+ "window_tree_host_factory.h",
+ ]
+
++ # Work around base r261801
++ if (is_bsd) {
++ defines = ["_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1"]
++ }
++
+ deps = [
+ # TODO(sad): Temporary, until the GPU process is split out of ws.
+ "//services/ui/gpu",