]> code.ossystems Code Review - openembedded-core.git/commitdiff
meson.bbclass: compile with --buildtype plain
authorMartin Kelly <mkelly@xevo.com>
Wed, 17 Jan 2018 19:22:55 +0000 (11:22 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Jan 2018 12:18:04 +0000 (12:18 +0000)
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.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/meson.bbclass

index 4a4c51f840231bb77c7ea4f4d3670b26b6ad1a5b..f9cee00c078db36879556ffe90c53b8dfdf349e6 100644 (file)
@@ -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)} \