Skip to content

Commit

Permalink
fix libdir for native and local builds (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Nov 4, 2023
1 parent cee5276 commit b39c3a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockerfile/cosmos/local.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN set -eux; \
if [ ! -z "${WASMVM_VERSION}" ]; then\
WASMVM_REPO=$(echo $WASMVM_VERSION | awk '{print $1}');\
WASMVM_VERS=$(echo $WASMVM_VERSION | awk '{print $2}');\
wget -O $LIBDIR/libwasmvm_muslc.a https://${WASMVM_REPO}/releases/download/${WASMVM_VERS}/libwasmvm_muslc.$(uname -m).a;\
wget -O /lib/libwasmvm_muslc.a https://${WASMVM_REPO}/releases/download/${WASMVM_VERS}/libwasmvm_muslc.$(uname -m).a;\
fi;

ARG BUILD_DIR
Expand Down
2 changes: 1 addition & 1 deletion dockerfile/cosmos/native.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ RUN set -eux;\
if [ ! -z "${WASMVM_VERSION}" ]; then\
WASMVM_REPO=$(echo $WASMVM_VERSION | awk '{print $1}');\
WASMVM_VERS=$(echo $WASMVM_VERSION | awk '{print $2}');\
wget -O $LIBDIR/libwasmvm_muslc.a https://${WASMVM_REPO}/releases/download/${WASMVM_VERS}/libwasmvm_muslc.$(uname -m).a;\
wget -O /lib/libwasmvm_muslc.a https://${WASMVM_REPO}/releases/download/${WASMVM_VERS}/libwasmvm_muslc.$(uname -m).a;\
fi;\
export CGO_ENABLED=1 LDFLAGS='-linkmode external -extldflags "-static"';\
if [ ! -z "$PRE_BUILD" ]; then sh -c "${PRE_BUILD}"; fi;\
Expand Down

0 comments on commit b39c3a1

Please sign in to comment.