summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-11-08 16:02:12 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-11 10:08:11 +0000
commitb526b13f621e3245e23099ced8c22560f31418ea (patch)
tree8328da92b484a4da96bd6e768cee471f7b2bf9e7 /meta/recipes-graphics/wayland
parent7eb6bb849034072130d9ac66d8ca90927d26bb54 (diff)
downloadpoky-b526b13f621e3245e23099ced8c22560f31418ea.tar.gz
weston: Fix linking with LTO
weston uses --no-undefined option during linking which does not work with LTO therefore override it with -z undefs when lto is enabled in distro (From OE-Core rev: c5252fc88938ab3425595dcf31f892ed4aba6bc1) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-rw-r--r--meta/recipes-graphics/wayland/weston_9.0.0.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston_9.0.0.bb b/meta/recipes-graphics/wayland/weston_9.0.0.bb
index 75f9fb05fd..051fd85941 100644
--- a/meta/recipes-graphics/wayland/weston_9.0.0.bb
+++ b/meta/recipes-graphics/wayland/weston_9.0.0.bb
@@ -26,6 +26,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
26DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" 26DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0"
27DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" 27DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native"
28 28
29LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}"
30
29WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" 31WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}"
30 32
31EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false -Dpipewire=false" 33EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false -Dpipewire=false"