mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 16:40:13 +01:00
contrib/rpm: add option to build package with sanitizer
This commit is contained in:
parent
260fd3e79f
commit
07036d731a
1 changed files with 12 additions and 4 deletions
|
|
@ -51,6 +51,7 @@
|
|||
%bcond_without regen_docs
|
||||
%bcond_with debug
|
||||
%bcond_without test
|
||||
%bcond_with sanitizer
|
||||
|
||||
###############################################################################
|
||||
|
||||
|
|
@ -365,6 +366,13 @@ intltoolize --automake --copy --force
|
|||
--with-dhcpcd=no \
|
||||
--with-crypto=nss \
|
||||
--enable-more-warnings=error \
|
||||
%if %{with sanitizer}
|
||||
--enable-address-sanitizer \
|
||||
--enable-undefined-sanitizer \
|
||||
%else
|
||||
--disable-address-sanitizer \
|
||||
--disable-undefined-sanitizer \
|
||||
%endif
|
||||
%if %{with debug}
|
||||
--with-more-logging \
|
||||
--with-more-asserts=10000 \
|
||||
|
|
@ -485,11 +493,11 @@ fi
|
|||
%systemd_postun
|
||||
|
||||
|
||||
%post glib -p /sbin/ldconfig
|
||||
%postun glib -p /sbin/ldconfig
|
||||
%post glib -p /sbin/ldconfig
|
||||
%postun glib -p /sbin/ldconfig
|
||||
|
||||
%post libnm -p /sbin/ldconfig
|
||||
%postun libnm -p /sbin/ldconfig
|
||||
%post libnm -p /sbin/ldconfig
|
||||
%postun libnm -p /sbin/ldconfig
|
||||
|
||||
|
||||
%files
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue