Preserve CPPFLAGS in release builds

- Append -DNDEBUG to existing CPPFLAGS in the release target.
- Keep caller-provided build flags for Debian packaging.
This commit is contained in:
Antonio SJ Musumeci
2026-05-09 19:28:56 -05:00
committed by trapexit
parent c8f32f9f25
commit 12ac368e8b
+1 -1
View File
@@ -369,7 +369,7 @@ endef
.PHONY: release-amd64 release-arm64 release-armhf release-riscv64
.PHONY: release-sample release-static release-tarball release-installer
release:
$(MAKE) RELEASE=1 CPPFLAGS=-DNDEBUG all
$(MAKE) RELEASE=1 CPPFLAGS="$(CPPFLAGS) -DNDEBUG" all
release-all:
$(call build_release,"all")
release-sample: