mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 02:04:17 +00:00
contrib/rpm: enable undefined-sanitizer libubsan on RHEL-8
This commit is contained in:
parent
9119e5b618
commit
350681e7f1
|
@ -238,7 +238,7 @@ BuildRequires: polkit-devel
|
|||
BuildRequires: jansson-devel
|
||||
%if %{with sanitizer}
|
||||
BuildRequires: libasan
|
||||
%if 0%{?fedora}
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||
BuildRequires: libubsan
|
||||
%endif
|
||||
%endif
|
||||
|
@ -641,8 +641,10 @@ intltoolize --automake --copy --force
|
|||
%endif
|
||||
%if %{with sanitizer}
|
||||
--with-address-sanitizer=exec \
|
||||
%if 0%{?fedora}
|
||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||
--enable-undefined-sanitizer \
|
||||
%else
|
||||
--disable-undefined-sanitizer \
|
||||
%endif
|
||||
%else
|
||||
--with-address-sanitizer=no \
|
||||
|
|
Loading…
Reference in a new issue