Update config.{sub,guess} scripts

Needed to detect riscv64.

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-03-23 09:39:43 +02:00
parent 310500349f
commit ba905508e6
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -7,7 +7,7 @@
Summary: Free firewire audio driver library
Name: libffado
Version: 2.4.7
Release: %autorelease
Release: %autorelease -e 0.riscv64
License: GPLv2 or GPLv3
URL: http://www.ffado.org/
Source0: http://www.ffado.org/files/%{name}-%{version}.tgz
@ -87,6 +87,11 @@ sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \
support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \
support/tools/*.py support/tools/SConscript
%ifarch riscv64
find . -name 'config.sub' -exec cp -vf /usr/lib/rpm/%{?_vendor}/config.sub {} \;
find . -name 'config.guess' -exec cp -vf /usr/lib/rpm/%{?_vendor}/config.guess {} \;
%endif
%build
export CFLAGS="%{optflags} -ffast-math"
export CXXFLAGS="%{optflags} -ffast-math --std=gnu++11"