From fccc9d3de6cfd1f4d7dbf49af1582b88d143c4cd Mon Sep 17 00:00:00 2001 From: Konstantin Kharlamov Date: Sun, 3 Feb 2019 21:36:32 +0300 Subject: mapi: work around GCC LTO dropping assembly-defined functions Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109391 Signed-off-by: Konstantin Kharlamov Acked-by: Eric Engestrom Reviewed-by: Dylan Baker Reviewed-by: Eric Engestrom --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 8c24ef268f3..fbc02970e68 100644 --- a/meson.build +++ b/meson.build @@ -1465,6 +1465,10 @@ pkg = import('pkgconfig') env_test = environment() env_test.set('NM', find_program('nm').path()) +# This quirk needs to be applied to sources with functions defined in assembly +# as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391 +gcc_lto_quirk = (cc.get_id() == 'gcc') ? ['-fno-lto'] : [] + subdir('include') subdir('bin') subdir('src') -- cgit v1.2.3