From d3adf1adeccd02188d74f0cf9b45f55076be603c Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 14 Jul 2021 11:56:09 +0300 Subject: [PATCH] nodejs: fix issues with llvm/clang. See #282 --- extra/nodejs/build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/extra/nodejs/build b/extra/nodejs/build index be7192a3..a9aec844 100755 --- a/extra/nodejs/build +++ b/extra/nodejs/build @@ -1,5 +1,15 @@ #!/bin/sh -e +# Fix build when libatomic.so does not exist in the system. +# This may be provided by compiler-rt which requires no additional +# linker flags to be used. +[ -r "$KISS_ROOT/usr/lib/libatomic.so" ] || { + sed 's/-latomic//' node.gyp > _ + mv -f _ node.gyp +} + +export CC="${CC:-cc}" CXX="${CXX:-c++}" + ./configure \ --shared-zlib \ --shared-openssl \ @@ -9,7 +19,6 @@ --without-report \ --without-node-snapshot \ --without-node-code-cache \ - --partly-static \ --ninja ninja -C out/Release