summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-02-21 16:40:43 -0800
committerKonstantin Pavlov <pavlov.konstantin@gmail.com>2024-02-21 17:45:54 -0800
commit3f805bc64e287e8fa06d82c0e3c0904f0173dafe (patch)
treef7dbdcc50560af5c8976cbb582ebac947d10a919
parentcabea47de7287ea421317c92bc868c2d451cb757 (diff)
downloadunit-3f805bc64e287e8fa06d82c0e3c0904f0173dafe.tar.gz
unit-3f805bc64e287e8fa06d82c0e3c0904f0173dafe.tar.bz2
Packages: added wasm-wasi-component module packaging for deb-based distros
We need to redefine CFLAGS to drop missing-prototypes as warning since third-party code such as wasmtime fails to build from source when building a debian package. This happens only for packages because we use DPKG_EXPORT_BUILDFLAGS=1 propagating build flags to the environment, so cargo build picks it up as well. Since we have no control over third-party code, the easiest solution is to disable this warning.
-rw-r--r--pkg/deb/Makefile.wasm6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/deb/Makefile.wasm b/pkg/deb/Makefile.wasm
index da028f19..9e408fda 100644
--- a/pkg/deb/Makefile.wasm
+++ b/pkg/deb/Makefile.wasm
@@ -6,9 +6,9 @@ MODULE_SUMMARY_wasm= WASM module for NGINX Unit
MODULE_VERSION_wasm= $(VERSION)
MODULE_RELEASE_wasm= 1
-MODULE_CONFARGS_wasm= wasm --include-path=\$$(CURDIR)/pkg/contrib/wasmtime/crates/c-api/include --lib-path=\$$(CURDIR)/pkg/contrib/wasmtime/target/release
-MODULE_MAKEARGS_wasm= wasm
-MODULE_INSTARGS_wasm= wasm-install
+MODULE_CONFARGS_wasm= wasm --include-path=\$$(CURDIR)/pkg/contrib/wasmtime/crates/c-api/include --lib-path=\$$(CURDIR)/pkg/contrib/wasmtime/target/release \&\& ./configure wasm-wasi-component
+MODULE_MAKEARGS_wasm= wasm wasm-wasi-component CFLAGS='\$$(CFLAGS) -Wno-missing-prototypes'
+MODULE_INSTARGS_wasm= wasm-install wasm-wasi-component-install CFLAGS='\$$(CFLAGS) -Wno-missing-prototypes'
MODULE_SOURCES_wasm=