Only use slirp on fedora > 30, to fix virt-preview builds
This commit is contained in:
parent
40fbd86194
commit
e5504b6ad4
@ -313,7 +313,9 @@ BuildRequires: libudev-devel
|
|||||||
# qemu 4.0: Use for qauth infrastructure
|
# qemu 4.0: Use for qauth infrastructure
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
# qemu 4.0: user-mode networking
|
# qemu 4.0: user-mode networking
|
||||||
|
%if 0%{?fedora} > 30
|
||||||
BuildRequires: libslirp-devel
|
BuildRequires: libslirp-devel
|
||||||
|
%endif
|
||||||
# qemu 4.0: sphinx-build used for some docs
|
# qemu 4.0: sphinx-build used for some docs
|
||||||
%if 0%{?fedora} > 30
|
%if 0%{?fedora} > 30
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
@ -957,7 +959,9 @@ run_configure() {
|
|||||||
--enable-trace-backend=$tracebackends \
|
--enable-trace-backend=$tracebackends \
|
||||||
--extra-ldflags="$extraldflags -Wl,-z,relro -Wl,-z,now" \
|
--extra-ldflags="$extraldflags -Wl,-z,relro -Wl,-z,now" \
|
||||||
--extra-cflags="%{optflags}" \
|
--extra-cflags="%{optflags}" \
|
||||||
|
%if 0%{?fedora} > 30
|
||||||
--enable-slirp=system \
|
--enable-slirp=system \
|
||||||
|
%endif
|
||||||
"$@" || cat config.log
|
"$@" || cat config.log
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user