Use lld for linking on both Debug/Release builds
This follows Chromium's config, otherwise we get linking error: /usr/bin/ld: shared_library/libmirclient.so.9: __cxa_finalize: invalid needed version 2 shared_library/libmirclient.so.9: error adding symbols: Bad value
This commit is contained in:
parent
76ef6e3ecc
commit
34cb9cf1fe
2 changed files with 5 additions and 2 deletions
|
@ -129,7 +129,6 @@
|
|||
'<(libchromiumcontent_dir)/libpdf.a',
|
||||
'<(libchromiumcontent_dir)/libppapi_cpp_objects.a',
|
||||
'<(libchromiumcontent_dir)/libppapi_internal_module.a',
|
||||
'<(libchromiumcontent_dir)/libjpeg.a',
|
||||
'<(libchromiumcontent_dir)/libpdfium.a',
|
||||
'<(libchromiumcontent_dir)/libfdrm.a',
|
||||
'<(libchromiumcontent_dir)/libformfiller.a',
|
||||
|
|
|
@ -142,6 +142,11 @@
|
|||
'-Wl,-z,noexecstack',
|
||||
],
|
||||
}], # OS=="linux"
|
||||
['OS=="linux" and target_arch in ["ia32", "x64", "arm64"]', {
|
||||
'ldflags': [
|
||||
'-fuse-ld=lld', # Chromium Clang uses lld for linking
|
||||
],
|
||||
}], # OS=="linux" and target_arch in ["ia32", "x64", "arm64"]
|
||||
['OS=="mac"', {
|
||||
'defines': [
|
||||
# The usage of "webrtc/modules/desktop_capture/desktop_capture_options.h"
|
||||
|
@ -293,7 +298,6 @@
|
|||
],
|
||||
'ldflags': [
|
||||
'-flto=thin',
|
||||
'-fuse-ld=lld', # Chromium Clang uses lld for doing LTO
|
||||
'-Wl,--icf=all',
|
||||
'-Wl,--lto-O0', # this could be removed in future; see https://codereview.chromium.org/2939923004
|
||||
'-Wl,-mllvm,-function-sections',
|
||||
|
|
Loading…
Reference in a new issue