diff --git a/conf/distro/include/virt_security_flags.inc b/conf/distro/include/virt_security_flags.inc new file mode 100644 index 00000000..f4c288b8 --- /dev/null +++ b/conf/distro/include/virt_security_flags.inc @@ -0,0 +1,5 @@ +# Build errors with the pie options enabled +SECURITY_CFLAGS_pn-libvirt = "${SECURITY_NO_PIE_CFLAGS}" + +# This has text relco errors with the pie options enabled +SECURITY_CFLAGS_pn-lxc = "${SECURITY_NO_PIE_CFLAGS}" diff --git a/conf/layer.conf b/conf/layer.conf index 7ae9d093..f5c1b1ec 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -16,3 +16,6 @@ LICENSE_PATH += "${LAYERDIR}/files/custom-licenses" LAYERVERSION_virtualization-layer = "1" LAYERDEPENDS_virtualization-layer = "core networking-layer" + +# Override security flags +require conf/distro/include/virt_security_flags.inc