Skip to content

Commit 1371dcd

Browse files
committed
node-24: build with clang
1 parent 83116af commit 1371dcd

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build/nodejs/build-24.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ DESC+="servers."
2727
MAJVER=${VER%%.*}
2828

2929
set_arch 64
30+
set_clangver
3031
set_builddir $PROG-v$VER
3132
set_patchdir patches-$MAJVER
3233

@@ -56,6 +57,13 @@ CONFIGURE_OPTS="
5657
--shared-brotli
5758
"
5859

60+
pre_configure() {
61+
typeset arch=$1
62+
63+
subsume_arch $arch LDFLAGS
64+
LDFLAGS+=" -latomic"
65+
}
66+
5967
init
6068
download_source $PROG $PROG v$VER
6169
patch_source

0 commit comments

Comments
 (0)