From 9586fd9dbd98108a8780b3d74e77e090b1c436d6 Mon Sep 17 00:00:00 2001 From: "Antonio S. Musumeci" Date: Sun, 22 Nov 2026 01:28:03 -0500 Subject: [PATCH] fix: build RPMs with NDEBUG like the Debian packages - mergerfs.spec ran plain make with the distro flags, so RPMs were built without -DNDEBUG and their asserts stayed live: a failed one aborts the daemon. debian/rules builds the release target, which adds -DNDEBUG. - Build the release target in the spec too. The distro CFLAGS, CXXFLAGS and LDFLAGS still apply; a dry run shows every mergerfs and libfuse object now gets -DNDEBUG. --- mergerfs.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mergerfs.spec b/mergerfs.spec index e558283f..89ac59e4 100644 --- a/mergerfs.spec +++ b/mergerfs.spec @@ -26,7 +26,7 @@ management of files across numerous commodity storage devices. It is similar to mhddfs, unionfs, and aufs. %build -make %{?_smp_mflags} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" +make %{?_smp_mflags} release CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" %install make install PREFIX=%{_prefix} DESTDIR=%{buildroot}