diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-11-08 16:02:12 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-11-11 10:08:11 +0000 |
commit | b526b13f621e3245e23099ced8c22560f31418ea (patch) | |
tree | 8328da92b484a4da96bd6e768cee471f7b2bf9e7 /meta/recipes-graphics/wayland | |
parent | 7eb6bb849034072130d9ac66d8ca90927d26bb54 (diff) | |
download | poky-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.bb | 2 |
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" | |||
26 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" | 26 | DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0" |
27 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" | 27 | DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native" |
28 | 28 | ||
29 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}" | ||
30 | |||
29 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" | 31 | WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}" |
30 | 32 | ||
31 | EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false -Dpipewire=false" | 33 | EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false -Dpipewire=false" |