Detect the strict aliasing issues at build time (#1930652)
This commit is contained in:
parent
f763cd2ab7
commit
889f7bce72
@ -74,6 +74,8 @@ autoreconf -fvi
|
|||||||
sed -i -e 's/opensc.conf/opensc-%{_arch}.conf/g' src/libopensc/Makefile.in
|
sed -i -e 's/opensc.conf/opensc-%{_arch}.conf/g' src/libopensc/Makefile.in
|
||||||
%endif
|
%endif
|
||||||
sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure # lib64 rpaths
|
sed -i -e 's|"/lib /usr/lib\b|"/%{_lib} %{_libdir}|' configure # lib64 rpaths
|
||||||
|
%set_build_flags
|
||||||
|
CFLAGS="$CFLAGS -Wstrict-aliasing=2"
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--disable-autostart-items \
|
--disable-autostart-items \
|
||||||
--disable-notify \
|
--disable-notify \
|
||||||
|
Loading…
Reference in New Issue
Block a user