[packages/xen] - allow build with gcc 10 and 11
qboosh
qboosh at pld-linux.org
Wed Mar 20 19:32:43 CET 2024
commit 0692e1448c4269146bdd0b83f5d6b441e2a4b235
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Mar 20 19:13:35 2024 +0100
- allow build with gcc 10 and 11
xen.spec | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/xen.spec b/xen.spec
index d8667f6..b669508 100644
--- a/xen.spec
+++ b/xen.spec
@@ -435,6 +435,10 @@ Nadzorca Xen w postaci, która może być uruchomiona wprost z firmware
%if %(echo %{cc_version} | cut -d. -f1) >= 10
# -Wno-error=enum-conversion requires gcc 10
%patch15 -p1
+%if %(echo %{cc_version} | cut -d. -f1) < 12
+# -Wno-error=dangling-pointer requires gcc 12
+%{__sed} -i -e 's/ -Wno-error=dangling-pointer//' tools/firmware/etherboot/Config
+%endif
%endif
%patch16 -p1
%ifarch %{ix86} %{arm}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xen.git/commitdiff/0692e1448c4269146bdd0b83f5d6b441e2a4b235
More information about the pld-cvs-commit
mailing list