From 1b9c79f3e5b8745cf5daf5365836b21a0d037c6d Mon Sep 17 00:00:00 2001 From: Nicolas Savoire Date: Fri, 17 Feb 2023 18:08:23 +0100 Subject: [PATCH] Fix for https://github.com/nodejs/node-gyp/issues/2750 Without this workaround node18 fails to generate prebuilds for node versions < 18 with: gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp --- prebuild/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/prebuild/index.js b/prebuild/index.js index e4c8718..49976a6 100644 --- a/prebuild/index.js +++ b/prebuild/index.js @@ -114,7 +114,10 @@ function prebuildTarget (arch, target) { '--build_v8_with_gn=false', '--v8_enable_pointer_compression=""', '--v8_enable_31bit_smis_on_64bit_arch=""', - '--enable_lto=false' + '--enable_lto=false', + // Workaround for https://github.com/nodejs/node-gyp/issues/2750 + // taken from https://github.com/nodejs/node-gyp/issues/2673#issuecomment-1196931379 + '--openssl_fips=""' ].join(' ') }