Skip to content

Commit

Permalink
add static build flags (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
yun-yeo authored Apr 8, 2022
1 parent 8a7a47d commit 13bb7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ADD https://github.com/CosmWasm/wasmvm/releases/download/v${LIBWASMVM_VERSION}/l
RUN sha256sum /lib/libwasmvm_muslc.a | grep ${LIBWASMVM_SHA256}

# force it to use static lib (from above) not standard libgo_cosmwasm.so file
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LDFLAGS="-extldflags \"-L/code/mimalloc/build -lmimalloc -static\"" make build
RUN LEDGER_ENABLED=false BUILD_TAGS=muslc LDFLAGS="-linkmode=external -extldflags \"-L/code/mimalloc/build -lmimalloc -Wl,-z,muldefs -static\"" make build

FROM alpine:3.15.4

Expand Down

0 comments on commit 13bb7ef

Please sign in to comment.