Related: #1417753 - avoid using broken memcmp() code that gcc generates on ppc64le

This commit is contained in:
Kamil Dudka 2017-01-30 22:50:41 +01:00
parent ae38feed7f
commit 500388ce60

View File

@ -1,7 +1,7 @@
Summary: The GNU versions of find utilities (find and xargs) Summary: The GNU versions of find utilities (find and xargs)
Name: findutils Name: findutils
Version: 4.6.0 Version: 4.6.0
Release: 9%{?dist} Release: 10%{?dist}
Epoch: 1 Epoch: 1
License: GPLv3+ License: GPLv3+
Group: Applications/File Group: Applications/File
@ -95,6 +95,11 @@ git commit -q -m "after invocation of autoreconf"
# prevent test-isinf from failing with gcc-5.3.1 on ppc64le (#1294016) # prevent test-isinf from failing with gcc-5.3.1 on ppc64le (#1294016)
export CFLAGS="$RPM_OPT_FLAGS -D__SUPPORT_SNAN__" export CFLAGS="$RPM_OPT_FLAGS -D__SUPPORT_SNAN__"
%ifarch ppc64le
# avoid using broken memcmp() code that gcc generates on ppc64le (#1417753)
CFLAGS="$CFLAGS -fno-builtin-memcmp"
%endif
mkdir build mkdir build
cd build cd build
ln -s ../configure ln -s ../configure
@ -136,6 +141,9 @@ fi
%{_infodir}/find-maint.info.gz %{_infodir}/find-maint.info.gz
%changelog %changelog
* Mon Jan 30 2017 Kamil Dudka <kdudka@redhat.com> - 1:4.6.0-10
- avoid using broken memcmp() code that gcc generates on ppc64le (#1417753)
* Fri Jan 27 2017 Kamil Dudka <kdudka@redhat.com> - 1:4.6.0-9 * Fri Jan 27 2017 Kamil Dudka <kdudka@redhat.com> - 1:4.6.0-9
- add explicit BR for git as we use it in %%prep - add explicit BR for git as we use it in %%prep