diff options
author | Martin Kelly <mkelly@xevo.com> | 2018-01-17 11:22:55 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-19 12:37:14 +0000 |
commit | b895d1186254b58c2cbd25372a79c83187f6464d (patch) | |
tree | 8ec8956408416a55c585709595bcd706f7740fb7 /meta | |
parent | b96f5db544a0f2e1f36ab7bd7032b9d4d5adaca6 (diff) | |
download | poky-b895d1186254b58c2cbd25372a79c83187f6464d.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/meson.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass index 4a4c51f840..f9cee00c07 100644 --- a/meta/classes/meson.bbclass +++ b/meta/classes/meson.bbclass | |||
@@ -13,6 +13,7 @@ def noprefix(var, d): | |||
13 | return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1) | 13 | return d.getVar(var).replace(d.getVar('prefix') + '/', '', 1) |
14 | 14 | ||
15 | MESONOPTS = " --prefix ${prefix} \ | 15 | MESONOPTS = " --prefix ${prefix} \ |
16 | --buildtype plain \ | ||
16 | --bindir ${@noprefix('bindir', d)} \ | 17 | --bindir ${@noprefix('bindir', d)} \ |
17 | --sbindir ${@noprefix('sbindir', d)} \ | 18 | --sbindir ${@noprefix('sbindir', d)} \ |
18 | --datadir ${@noprefix('datadir', d)} \ | 19 | --datadir ${@noprefix('datadir', d)} \ |