diff --git a/dd_rescue.changes b/dd_rescue.changes index 8068244..56a9a06 100644 --- a/dd_rescue.changes +++ b/dd_rescue.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 8 16:00:38 UTC 2023 - Martin Liška + +- Disable strict aliasing due to its violation: + https://sourceforge.net/p/ddrescue/tickets/6/ + ------------------------------------------------------------------- Tue Dec 27 10:31:33 UTC 2022 - Ludwig Nussel diff --git a/dd_rescue.spec b/dd_rescue.spec index cc4b8e9..b51ba7f 100644 --- a/dd_rescue.spec +++ b/dd_rescue.spec @@ -127,7 +127,9 @@ autoconf # avoid running dependency generation step touch .dep -OPT_FLAGS="%{optflags}" +# GCC 13 newly detects a violation of the strict aliasing rule: +# https://sourceforge.net/p/ddrescue/tickets/6/ +OPT_FLAGS="%{optflags} -fno-strict-aliasing" %make_build RPM_OPT_FLAGS="$OPT_FLAGS" LIBDIR=%{_libdir} LIB=%{_lib} %install @@ -140,7 +142,7 @@ ln -sf %{_bindir}/dd_rescue %{buildroot}/bin %endif %check -%make_build RPM_OPT_FLAGS="%{optflags} -fcommon" check +%make_build RPM_OPT_FLAGS="%{optflags} -fcommon -fno-strict-aliasing" check %files %doc README.dd_rescue TODO