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:
Beniamino Galvani 2018-02-08 09:07:16 +01:00
parent 0fb7989092
commit f548806213

View file

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