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:
commit
35589c3187
@ -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>
|
Wed Jan 13 09:31:27 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -115,11 +115,7 @@ data to the decompressor; the plugin is still young and might expose bugs.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%autopatch -p1
|
||||||
%patch2 -p1
|
|
||||||
%patch3 -p1
|
|
||||||
%patch4 -p1
|
|
||||||
%patch5 -p1
|
|
||||||
# Remove build time references so build-compare can do its work
|
# Remove build time references so build-compare can do its work
|
||||||
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M')
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{SOURCE99} '+%%H:%%M')
|
||||||
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE99} '+%%b %%e %%Y')
|
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
|
autoheader
|
||||||
autoconf
|
autoconf
|
||||||
%configure
|
%configure
|
||||||
|
|
||||||
# avoid running dependency generation step
|
# avoid running dependency generation step
|
||||||
touch .dep
|
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
|
%install
|
||||||
%make_install RPM_OPT_FLAGS="%{optflags}" INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \
|
%make_install RPM_OPT_FLAGS="%{optflags}" INSTALLDIR=%{buildroot}/%{_bindir} LIB=%{_lib} LIBDIR=%{_libdir} \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user