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.
This commit is contained in:
Antonio S. Musumeci 2026-11-22 01:28:03 -05:00
parent bc7b7ffeae
commit 9586fd9dbd

View file

@ -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}