$OpenBSD: patch-common_gypi,v 1.16 2021/09/06 13:27:41 sthen Exp $

Index: common.gypi
--- common.gypi.orig
+++ common.gypi
@@ -396,7 +396,7 @@
             'cflags': [ '-m32' ],
             'ldflags': [ '-m32' ],
           }],
-          [ 'target_arch=="ppc64" and OS!="aix"', {
+          [ 'target_arch=="ppc64" and OS!="aix" and OS!="openbsd"', {
             'cflags': [ '-m64', '-mminimal-toc' ],
             'ldflags': [ '-m64' ],
           }],
@@ -524,6 +524,10 @@
         'ldflags': [
           '-Wl,--export-dynamic',
         ],
+      }],
+      ['OS=="openbsd"', {
+        'cflags': [ '-I${LOCALBASE}/include' ],
+        'libraries': [ '-L${LOCALBASE}/lib' ],
       }],
       # if node is built as an executable,
       #      the openssl mechanism for keeping itself "dload"-ed to ensure proper
