summaryrefslogtreecommitdiff
path: root/www/node10/files/patch-common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'www/node10/files/patch-common.gypi')
-rw-r--r--www/node10/files/patch-common.gypi18
1 files changed, 18 insertions, 0 deletions
diff --git a/www/node10/files/patch-common.gypi b/www/node10/files/patch-common.gypi
new file mode 100644
index 000000000000..3f24b48b797b
--- /dev/null
+++ b/www/node10/files/patch-common.gypi
@@ -0,0 +1,18 @@
+--- common.gypi.orig 2020-06-08 21:52:35 UTC
++++ common.gypi
+@@ -509,15 +509,6 @@
+ 'libraries': [ '-lelf' ],
+ }],
+ ['OS=="freebsd"', {
+- 'conditions': [
+- ['"0" < llvm_version < "4.0"', {
+- # Use this flag because on FreeBSD std::pairs copy constructor is non-trivial.
+- # Doesn't apply to llvm 4.0 (FreeBSD 11.1) or later.
+- # Refs: https://lists.freebsd.org/pipermail/freebsd-toolchain/2016-March/002094.html
+- # Refs: https://svnweb.freebsd.org/ports/head/www/node/Makefile?revision=444555&view=markup
+- 'cflags': [ '-D_LIBCPP_TRIVIAL_PAIR_COPY_CTOR=1' ],
+- }],
+- ],
+ 'ldflags': [
+ '-Wl,--export-dynamic',
+ ],