--- qtwebengine-opensource-src-5.7.1/src/3rdparty/chromium/sandbox/linux/sandbox_linux.gypi +++ qtwebengine-opensource-src-5.7.1/src/3rdparty/chromium/sandbox/linux/sandbox_linux.gypi @@ -158,10 +158,16 @@ 'defines': [ 'SANDBOX_IMPLEMENTATION', ], - 'includes': [ + 'target_conditions': [ # Disable LTO due to compiler bug # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57703 - '../../build/android/disable_gcc_lto.gypi', + ['_toolset=="target"', { + 'conditions': [ + ['clang==0', { + 'cflags_cc': ['-fno-lto'], + }], + ], + }], ], 'include_dirs': [ '../..',