If configure fails, display config.log file before exiting.

This commit is contained in:
Richard W.M. Jones 2015-06-19 10:44:40 +01:00
parent de8b2d37a2
commit 5e3013c4cb
1 changed files with 4 additions and 1 deletions

View File

@ -85,7 +85,10 @@ autoreconf -i
%build
# NB: canonical_arch is a variable in the final script, so it
# has to be escaped here.
%configure --with-qemu-list="qemu-system-\$canonical_arch"
%configure --with-qemu-list="qemu-system-\$canonical_arch" || {
cat config.log
exit 1
}
make %{?_smp_mflags}