mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 03:38:09 +02:00
contrib/rpm: enable undefined-sanitizer libubsan on RHEL-8
(cherry picked from commit 350681e7f1)
This commit is contained in:
parent
99966958a8
commit
df0f9c8fbd
1 changed files with 4 additions and 2 deletions
|
|
@ -238,7 +238,7 @@ BuildRequires: polkit-devel
|
||||||
BuildRequires: jansson-devel
|
BuildRequires: jansson-devel
|
||||||
%if %{with sanitizer}
|
%if %{with sanitizer}
|
||||||
BuildRequires: libasan
|
BuildRequires: libasan
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
BuildRequires: libubsan
|
BuildRequires: libubsan
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -641,8 +641,10 @@ intltoolize --automake --copy --force
|
||||||
%endif
|
%endif
|
||||||
%if %{with sanitizer}
|
%if %{with sanitizer}
|
||||||
--with-address-sanitizer=exec \
|
--with-address-sanitizer=exec \
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
--enable-undefined-sanitizer \
|
--enable-undefined-sanitizer \
|
||||||
|
%else
|
||||||
|
--disable-undefined-sanitizer \
|
||||||
%endif
|
%endif
|
||||||
%else
|
%else
|
||||||
--with-address-sanitizer=no \
|
--with-address-sanitizer=no \
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue