mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
taisei: Add packageconfigs for lto and rtti
meson's rtti detection logic fails especially with
clang which disables rtti by default. The test is
triggerred in one of taisei's submodules especially
this commit [1], I think it should be something in
meson to fix in its rtti detection logic
Similarily LTO is only enabled when it is in distro
features, clang disables support for LTO in toolchain
when its not in distro features and linking fails since
it can not find linker plugin.
[1] 851bfc63fd
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
67fa4530d1
commit
ff2a53be1c
|
|
@ -39,11 +39,13 @@ inherit features_check meson mime mime-xdg pkgconfig python3native
|
|||
|
||||
REQUIRED_DISTRO_FEATURES = "opengl"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'lto', d)}"
|
||||
|
||||
PACKAGECONFIG[a_null] = "-Da_null=true,-Da_null=false"
|
||||
PACKAGECONFIG[developer] = "-Ddeveloper=true,-Ddeveloper=false"
|
||||
PACKAGECONFIG[docs] = "-Ddocs=true,-Ddocs=false,python3-docutils-native"
|
||||
PACKAGECONFIG[rtti] = "-Dcpp_rtti=true,-Dcpp_rtti=false,"
|
||||
PACKAGECONFIG[lto] = "-Db_lto=true,-Db_lto=false,"
|
||||
|
||||
EXTRA_OEMESON += "-Dstrip=false"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user