From e34c57f612d4cf56646450f75fe38e029ff2b0d6 Mon Sep 17 00:00:00 2001 From: Jesse Chan Date: Wed, 30 Mar 2022 20:30:04 -0700 Subject: [PATCH] build: explicitly call "/bin/sh" for configure --- lib/build.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/build.ts b/lib/build.ts index ecb49f87..2ce10b6b 100644 --- a/lib/build.ts +++ b/lib/build.ts @@ -230,7 +230,10 @@ async function compileOnUnix( args.push(...getConfigureArgs(getMajor(nodeVersion), targetPlatform)); // TODO same for windows? - await spawn('./configure', args, { cwd: nodePath, stdio: 'inherit' }); + await spawn('/bin/sh', ['./configure', ...args], { + cwd: nodePath, + stdio: 'inherit', + }); await spawn( hostPlatform === 'freebsd' ? 'gmake' : 'make',