nodejs-lts: add libatomic-devel to {host,}makedepends

Also architectures where XBPS_{TARGET_}NO_ATOMIC8 is false,
e.g. armv7l-musl, are linked against libatomic, so just always
add that tiny dependency to {host,}makedepends.
This commit is contained in:
Jürgen Buchmüller 2021-02-08 15:02:31 +01:00
parent 2b64e03a11
commit c8fd7947fe

View file

@ -4,11 +4,11 @@ version=12.20.1
revision=1
wrksrc="node-v${version}"
# Need these for host v8 for torque, see https://github.com/nodejs/node/pull/21079
hostmakedepends="pkg-config python zlib-devel $(vopt_if icu icu-devel)
$(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
hostmakedepends="pkg-config python libatomic-devel zlib-devel which
$(vopt_if icu icu-devel) $(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
$(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel)
$(vopt_if cares c-ares-devel) $(vopt_if http_parser llhttp-devel)"
makedepends="zlib-devel python-devel $(vopt_if icu icu-devel)
makedepends="libatomic-devel zlib-devel python-devel $(vopt_if icu icu-devel)
$(vopt_if ssl libressl-devel) $(vopt_if libuv libuv-devel)
$(vopt_if http_parser http-parser-devel) $(vopt_if nghttp2 nghttp2-devel)
$(vopt_if cares c-ares-devel) $(vopt_if http_parser llhttp-devel)"
@ -42,13 +42,6 @@ case "$XBPS_TARGET_MACHINE" in
ppc*) broken="Node 12.x does not support 32-bit ppc" ;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
if [ "$XBPS_NO_ATOMIC8" ]; then
hostmakedepends+=" libatomic-devel"
fi
CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"