mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-02 04:46:41 -05:00
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:
parent
bc7b7ffeae
commit
9586fd9dbd
1 changed files with 1 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue