mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
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>
This commit is contained in:
@@ -26,6 +26,8 @@ REQUIRED_DISTRO_FEATURES = "opengl"
|
||||
DEPENDS = "libxkbcommon gdk-pixbuf pixman cairo glib-2.0"
|
||||
DEPENDS += "wayland wayland-protocols libinput virtual/egl pango wayland-native"
|
||||
|
||||
LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'lto', '-Wl,-z,undefs', '', d)}"
|
||||
|
||||
WESTON_MAJOR_VERSION = "${@'.'.join(d.getVar('PV').split('.')[0:1])}"
|
||||
|
||||
EXTRA_OEMESON += "-Dbackend-default=auto -Dbackend-rdp=false -Dpipewire=false"
|
||||
|
||||
Reference in New Issue
Block a user