Accepting request 867587 from Base:System

- build with -fno-strict-aliasing on aarch64 to workaround (bsc#1181402)

OBS-URL: https://build.opensuse.org/request/show/867587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dd_rescue?expand=0&rev=47
This commit is contained in:
Dominique Leuenberger 2021-02-01 13:41:33 +00:00 committed by Git OBS Bridge
commit 35589c3187
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jan 28 22:41:26 UTC 2021 - Dirk Müller <dmueller@suse.com>
- build with -fno-strict-aliasing on aarch64 to workaround (bsc#1181402)
-------------------------------------------------------------------
Wed Jan 13 09:31:27 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@ -115,11 +115,7 @@ data to the decompressor; the plugin is still young and might expose bugs.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%autopatch -p1
# Remove build time references so build-compare can do its work
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M')
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE99} '+%%b %%e %%Y')
@ -130,9 +126,16 @@ sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/g" dd_rescue.c
autoheader
autoconf
%configure
# avoid running dependency generation step
touch .dep
%make_build RPM_OPT_FLAGS="%{optflags}" LIBDIR=%{_libdir} LIB=%{_lib}
OPT_FLAGS="%{optflags}"
%ifarch aarch64
OPT_FLAGS+=" -fno-strict-aliasing"
%endif
%make_build RPM_OPT_FLAGS="$OPT_FLAGS" LIBDIR=%{_libdir} LIB=%{_lib}
%install
%make_install RPM_OPT_FLAGS="%{optflags}" INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \