mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
meson.bbclass: compile with --buildtype plain
OE manages all the compile flags, so we don't want meson to inject its own flags. Currently, it's injecting -O0 and causing build breaks when security flags are enabled (because _FORTIFY_SOURCE requires an optimized build and meson defaults to a debug -O0 build). Add --buildtype plain so meson will not add its own optimization flags. (From OE-Core rev: 73ff85986d82c8da601d7c7cf9a02961f2f66a09) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b96f5db544
commit
b895d11862
@@ -13,6 +13,7 @@ def noprefix(var, d):
|
||||
return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1)
|
||||
|
||||
MESONOPTS = " --prefix ${prefix} \
|
||||
--buildtype plain \
|
||||
--bindir ${@noprefix('bindir', d)} \
|
||||
--sbindir ${@noprefix('sbindir', d)} \
|
||||
--datadir ${@noprefix('datadir', d)} \
|
||||
|
||||
Reference in New Issue
Block a user