summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker/Makefile
diff options
context:
space:
mode:
authoroxpa <iippolitov@gmail.com>2024-09-17 15:43:32 +0100
committerKonstantin Pavlov <thresh@nginx.com>2024-09-17 12:40:49 -0700
commitdadad1f3acd1a6f07c7102121d44f07b9ca1d6db (patch)
treefe05fdd5db484ce71ed526d402375c0854fe0c9a /pkg/docker/Makefile
parent2417826d8bebf921ee1be102ef8ce702f0683d66 (diff)
downloadunit-dadad1f3acd1a6f07c7102121d44f07b9ca1d6db.tar.gz
unit-dadad1f3acd1a6f07c7102121d44f07b9ca1d6db.tar.bz2
Docker: fix docker builds with wasm
Diffstat (limited to 'pkg/docker/Makefile')
-rw-r--r--pkg/docker/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/docker/Makefile b/pkg/docker/Makefile
index 9dbca2d2..6d7726b4 100644
--- a/pkg/docker/Makefile
+++ b/pkg/docker/Makefile
@@ -79,12 +79,12 @@ MODULE_PREBUILD_ruby ?= /bin/true
VERSIONS_wasm ?=
CONTAINER_wasm ?= debian:$(VARIANT)-slim
-CONFIGURE_wasm ?= wasm --include-path=\`pwd\`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=/usr/lib/\$$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ \&\& ./configure wasm-wasi-component
+CONFIGURE_wasm ?= wasm --include-path=\`pwd\`/pkg/contrib/wasmtime/artifacts/include --lib-path=/usr/lib/\$$(dpkg-architecture -q DEB_HOST_MULTIARCH)/ \&\& ./configure wasm-wasi-component
INSTALL_wasm ?= wasm-install wasm-wasi-component-install
RUN_wasm ?= /bin/true
define MODULE_PREBUILD_wasm
-apt-get install --no-install-recommends --no-install-suggests -y libclang-dev \\\n \
+apt-get install --no-install-recommends --no-install-suggests -y libclang-dev cmake \\\n \
\ \ \ \&\& export RUST_VERSION=1.80.1 \\\n \
\ \ \ \&\& export RUSTUP_HOME=/usr/src/unit/rustup \\\n \
\ \ \ \&\& export CARGO_HOME=/usr/src/unit/cargo \\\n \
@@ -105,7 +105,7 @@ apt-get install --no-install-recommends --no-install-suggests -y libclang-dev \\
\ \ \ \&\& cargo --version \\\n \
\ \ \ \&\& rustc --version \\\n \
\ \ \ \&\& make -C pkg/contrib .wasmtime \\\n \
-\ \ \ \&\& install -pm 755 pkg/contrib/wasmtime/target/release/libwasmtime.so /usr/lib/\$$\(dpkg-architecture -q DEB_HOST_MULTIARCH\)/
+\ \ \ \&\& install -pm 755 pkg/contrib/wasmtime/artifacts/lib/libwasmtime.so /usr/lib/\$$\(dpkg-architecture -q DEB_HOST_MULTIARCH\)/
endef
default: