Skip to content

Commit f58570d

Browse files
author
gregnuj
committed
attempt to fix static linking
1 parent 23c7281 commit f58570d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

alpine.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN set -eux &&\
1111
apk add --no-cache \
1212
ca-certificates \
1313
linux-headers \
14+
musl-dev \
1415
build-base \
1516
cmake \
1617
bash \
@@ -30,7 +31,7 @@ ARG COSMOS_BUILD_OPTIONS="nostrip"
3031
ARG GIT_TAG="v2.4.1"
3132
ARG GIT_REPO="terra-money/core"
3233
#ARG LDFLAGS="-extldflags '-L/go/src/mimalloc/build -lmimalloc -Wl,-z,muldefs -static'"
33-
ARG LDFLAGS='-extldflags "-Wl,-z,muldefs -static"'
34+
ARG LDFLAGS='-linkmode external -extldflags "-Wl,-z,muldefs -static"'
3435
ARG MIMALLOC_VERSION
3536

3637
ENV MIMALLOC_VERSION=${MIMALLOC_VERSION}

0 commit comments

Comments
 (0)