Use --as-needed for mips64el

This is required to avoid linking unnecessary system libraries which may
conflict with the ones used in Chromium. As side effect we have to turn
off official build for mips64el.
This commit is contained in:
Cheng Zhao
2018-03-15 17:55:07 +09:00
parent 8200d6cdbf
commit 9a9b4910e8
2 changed files with 2 additions and 6 deletions

View File

@@ -277,14 +277,10 @@
# Specifically tell the linker to perform optimizations.
# See http://lwn.net/Articles/192624/ .
'-Wl,-O1',
'-Wl,--as-needed',
'-Wl,--gc-sections',
],
}], # OS=="linux"
['OS=="linux" and target_arch!="mips64el"', {
'ldflags': [
'-Wl,--as-needed',
],
}],
['OS=="linux" and target_arch in ["ia32", "x64", "arm64"]', {
'cflags': [
'-flto',