contrib/rpm: enable undefined-sanitizer libubsan on RHEL-8

This commit is contained in:
Thomas Haller 2020-05-14 10:18:12 +02:00
parent 9119e5b618
commit 350681e7f1
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

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