Skip to content

Commit 24d7705

Browse files
perf: update musl build
Signed-off-by: 吴小白 <296015668@qq.com>
1 parent f973431 commit 24d7705

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

recipes/musl/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.19
1+
FROM alpine:3.21
22

33
ARG GID=1000
44
ARG UID=1000
@@ -10,7 +10,6 @@ RUN apk add --no-cache \
1010
libstdc++ \
1111
&& apk add --no-cache --virtual .build-deps \
1212
bash \
13-
binutils-gold \
1413
curl \
1514
g++ \
1615
gcc \

recipes/musl/run.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,14 @@ commit="$5"
1010
fullversion="$6"
1111
source_url="$7"
1212
source_urlbase="$8"
13-
config_flags=
13+
config_flags=""
14+
15+
alpineArch="$(apk --print-arch)"
16+
case "${alpineArch##*-}" in
17+
riscv64|loongarch64)
18+
config_flags+="--openssl-no-asm"
19+
;;
20+
esac
1421

1522
cd /home/node
1623

@@ -21,8 +28,6 @@ export CC="ccache gcc"
2128
export CXX="ccache g++"
2229

2330
make -j$(getconf _NPROCESSORS_ONLN) binary V= \
24-
DESTCPU="x64" \
25-
ARCH="x64" \
2631
VARIATION="musl" \
2732
DISTTYPE="$disttype" \
2833
CUSTOMTAG="$customtag" \

0 commit comments

Comments
 (0)