From 889f7bce72f2b70d37e5239ba862bf117c186cdc Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 25 Feb 2021 11:34:22 +0100 Subject: [PATCH] Detect the strict aliasing issues at build time (#1930652) --- opensc.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensc.spec b/opensc.spec index a00f3e8..4b61999 100644 --- a/opensc.spec +++ b/opensc.spec @@ -74,6 +74,8 @@ autoreconf -fvi sed -i -e 's/opensc.conf/opensc-%{_arch}.conf/g' src/libopensc/Makefile.in %endif sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure # lib64 rpaths +%set_build_flags +CFLAGS="$CFLAGS -Wstrict-aliasing=2" %configure --disable-static \ --disable-autostart-items \ --disable-notify \