]> git.pld-linux.org Git - packages/xen.git/commitdiff
- allow build with gcc 10 and 11
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 20 Mar 2024 18:13:35 +0000 (19:13 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 20 Mar 2024 18:13:35 +0000 (19:13 +0100)
xen.spec

index d8667f6a106f776abd53173c8871cea1cf864fed..b66950870e55eb25cf6494b56aacbcd42ba94a5b 100644 (file)
--- 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}
This page took 0.281607 seconds and 4 git commands to generate.