nodejs: fix issues with llvm/clang. See #282

This commit is contained in:
Dylan Araps 2021-07-14 11:56:09 +03:00
parent 8c28694cbd
commit d3adf1adec
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -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