Skip to content

Commit

Permalink
Change prebuiltBinding.js script to check for GLIBC version rather th…
Browse files Browse the repository at this point in the history
…an openssl version
  • Loading branch information
DomPeliniAerospike committed Jan 16, 2024
1 parent 5e3b0c6 commit e74fb01
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/prebuiltBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ const rm = util.promisify(fs.rm)
rm('lib/binding/node-v115-darwin-x64', { recursive: true, force: true })
rm('lib/binding/node-v108-darwin-x64', { recursive: true, force: true })

const output = await exec('ldd --version | awk 'NR==1{print $NF}'')
const version = Number(output)
const output = await exec("ldd --version | awk 'NR==1{print $NF}'")
const version = Number(output.stdout)

let openssl
if(version < 2.33){
openssl = 1
openssl = '1'
}
else{
openssl = 3
openssl = '3'
}
console.log(openssl)

if (arch === 'x64') {
await rename('lib/binding/openssl@' + openssl + '/node-v120-linux-x64', 'lib/binding/node-v120-linux-x64')
Expand Down

0 comments on commit e74fb01

Please sign in to comment.