mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 12:05:03 +00: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
|
@ -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…
Reference in a new issue