From da333a25d0bd26590a22e28af5f507464b053cea Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 19 Feb 2019 15:41:26 +0100 Subject: [PATCH] adjust CFLAGS on armv7hl and ppc64le to fix building (#1675089) --- guile.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guile.spec b/guile.spec index 16c712f..a23de23 100644 --- a/guile.spec +++ b/guile.spec @@ -54,6 +54,12 @@ install the guile package. %build +# The -O2 option in CFLAGS seems to cause the build to fail on +# some archs (bug #1675089) +%ifarch armv7hl ppc64le +export CFLAGS="$(echo $RPM_OPT_FLAGS | sed 's/-O2/-Os/')" +%endif + %configure --disable-static --disable-error-on-warning # Remove RPATH