mapi: work around GCC LTO dropping assembly-defined functions

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109391

Signed-off-by: Konstantin Kharlamov <Hi-Angel@yandex.ru>
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Konstantin Kharlamov
2019-02-03 21:36:32 +03:00
committed by Eric Engestrom
parent 017349997f
commit fccc9d3de6
5 changed files with 8 additions and 0 deletions

View File

@@ -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')