mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 20:00:32 +01:00
rpm: update sanitizer build flags
Disable undefined sanitizer on RHEL since it's not supported. Also, enable address sanitizer only for executables, as having it enabled in libraries causes problems when applications built without asan load them.
This commit is contained in:
parent
0fb7989092
commit
f548806213
1 changed files with 4 additions and 2 deletions
|
|
@ -409,10 +409,12 @@ intltoolize --automake --copy --force
|
|||
--with-config-dhcp-default=dhclient \
|
||||
--with-crypto=nss \
|
||||
%if %{with sanitizer}
|
||||
--enable-address-sanitizer \
|
||||
--with-address-sanitizer=exec \
|
||||
%if 0%{?fedora}
|
||||
--enable-undefined-sanitizer \
|
||||
%endif
|
||||
%else
|
||||
--disable-address-sanitizer \
|
||||
--with-address-sanitizer=no \
|
||||
--disable-undefined-sanitizer \
|
||||
%endif
|
||||
%if %{with debug}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue