summaryrefslogtreecommitdiff
path: root/lang/nodejs14/patches/patch-common.gypi
diff options
context:
space:
mode:
Diffstat (limited to 'lang/nodejs14/patches/patch-common.gypi')
-rw-r--r--lang/nodejs14/patches/patch-common.gypi20
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/nodejs14/patches/patch-common.gypi b/lang/nodejs14/patches/patch-common.gypi
new file mode 100644
index 00000000000..a94febf7a3a
--- /dev/null
+++ b/lang/nodejs14/patches/patch-common.gypi
@@ -0,0 +1,20 @@
+$NetBSD: patch-common.gypi,v 1.1 2022/03/30 06:51:30 adam Exp $
+
+Add support for NetBSD.
+
+--- common.gypi.orig 2020-01-07 22:07:48.000000000 +0000
++++ common.gypi
+@@ -326,11 +326,11 @@
+ 'BUILDING_UV_SHARED=1',
+ ],
+ }],
+- [ 'OS in "linux freebsd openbsd solaris aix"', {
++ [ 'OS in "linux freebsd openbsd netbsd solaris aix"', {
+ 'cflags': [ '-pthread' ],
+ 'ldflags': [ '-pthread' ],
+ }],
+- [ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
++ [ 'OS in "linux freebsd openbsd netbsd netbsd solaris android aix cloudabi"', {
+ 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
+ 'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++1y' ],
+ 'defines': [ '__STDC_FORMAT_MACROS' ],