Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
build: explicitly call "/bin/sh" for configure
Browse files Browse the repository at this point in the history
  • Loading branch information
jesec committed Mar 31, 2022
1 parent 5fce1d2 commit e34c57f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e34c57f

Please sign in to comment.