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:

committed by
Eric Engestrom

parent
017349997f
commit
fccc9d3de6
@@ -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')
|
||||
|
Reference in New Issue
Block a user