adjust CFLAGS on armv7hl and ppc64le to fix building (#1675089)

This commit is contained in:
Miroslav Lichvar 2019-02-19 15:41:26 +01:00
parent 3ab4a63fcf
commit da333a25d0
1 changed files with 6 additions and 0 deletions

View File

@ -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