Accepting request 1063872 from home:marxin:branches:Base:System

- Disable strict aliasing due to its violation:
  https://sourceforge.net/p/ddrescue/tickets/6/

OBS-URL: https://build.opensuse.org/request/show/1063872
OBS-URL: https://build.opensuse.org/package/show/Base:System/dd_rescue?expand=0&rev=68
This commit is contained in:
Marcus Meissner 2023-02-10 13:32:37 +00:00 committed by Git OBS Bridge
parent da0c129886
commit 71b9146bb1
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 8 16:00:38 UTC 2023 - Martin Liška <mliska@suse.cz>
- Disable strict aliasing due to its violation:
https://sourceforge.net/p/ddrescue/tickets/6/
-------------------------------------------------------------------
Tue Dec 27 10:31:33 UTC 2022 - Ludwig Nussel <lnussel@suse.com>

View File

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