$NetBSD: patch-gyp_common.gypi,v 1.1 2024/02/10 01:20:47 ryoon Exp $ * NetBSD support --- gyp/common.gypi.orig 2021-02-15 05:04:33.000000000 +0000 +++ gyp/common.gypi @@ -93,6 +93,14 @@ '-fstack-protector', '--param=ssp-buffer-size=4', ], + # netbsd_cflags will be used for NetBSD. + 'netbsd_cflags': [ + '<@(gcc_cflags)', + '-fPIC', + '-D_NETBSD_SOURCE', + '-fno-exceptions', + ' and instead of upcoming + # and . + '-Wno-deprecated', + ], + 'ldflags': [ + '-pthread', + ], + }], ['OS=="mac"', { 'defines': [ '__APPLE__', @@ -410,7 +442,7 @@ ], }, 'conditions': [ - ['target_platform=="Linux"', { + ['target_platform=="Linux" or target_platform=="NetBSD"', { 'make_global_settings': [ ['AR', '