From 500388ce608acea5ea4a47a5b923199fe412bbe7 Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Mon, 30 Jan 2017 22:50:41 +0100 Subject: [PATCH] Related: #1417753 - avoid using broken memcmp() code that gcc generates on ppc64le --- findutils.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/findutils.spec b/findutils.spec index c331fb6..2f0185e 100644 --- a/findutils.spec +++ b/findutils.spec @@ -1,7 +1,7 @@ Summary: The GNU versions of find utilities (find and xargs) Name: findutils Version: 4.6.0 -Release: 9%{?dist} +Release: 10%{?dist} Epoch: 1 License: GPLv3+ 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) 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 cd build ln -s ../configure @@ -136,6 +141,9 @@ fi %{_infodir}/find-maint.info.gz %changelog +* Mon Jan 30 2017 Kamil Dudka - 1:4.6.0-10 +- avoid using broken memcmp() code that gcc generates on ppc64le (#1417753) + * Fri Jan 27 2017 Kamil Dudka - 1:4.6.0-9 - add explicit BR for git as we use it in %%prep