Add -fgnu89-inline to fix ISan build. sandbox/ibaravy/isan
authorIvan Baravy <i.baravy@samsung.com>
Tue, 31 Oct 2017 17:36:08 +0000 (20:36 +0300)
committerIvan Baravy <i.baravy@samsung.com>
Tue, 31 Oct 2017 17:36:08 +0000 (20:36 +0300)
packaging/audit.spec

index 5b4d806..dd51751 100644 (file)
@@ -78,6 +78,10 @@ behavior.
 cp %{SOURCE1001} .
 
 %build
+%{?ubsan:
+export CFLAGS+=" -fgnu89-inline"
+}
+
 %reconfigure --sbindir=%{_sbindir} --libdir=/%{_lib} --with-python=yes \
            --without-python3 --enable-gssapi-krb5=yes --with-libcap-ng=yes \
            --with-arm --with-aarch64 --enable-systemd --disable-zos-remote