]> git.proxmox.com Git - mirror_qemu.git/blobdiff - meson.build
docs/system: Extend PPC section
[mirror_qemu.git] / meson.build
index 81d760d6e84f0291f3b7d2ccb0b236335c359298..adeec153d9146d10028f67b6b147ca43947ffdfb 100644 (file)
@@ -1574,6 +1574,18 @@ if have_system
   endif
 endif
 
+# For CFI, we need to compile slirp as a static library together with qemu.
+# This is because we register slirp functions as callbacks for QEMU Timers.
+# When using a system-wide shared libslirp, the type information for the
+# callback is missing and the timer call produces a false positive with CFI.
+#
+# Now that slirp_opt has been defined, check if the selected slirp is compatible
+# with control-flow integrity.
+if get_option('cfi') and slirp_opt == 'system'
+  error('Control-Flow Integrity is not compatible with system-wide slirp.' \
+         + ' Please configure with --enable-slirp=git')
+endif
+
 fdt = not_found
 fdt_opt = get_option('fdt')
 if have_system