summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index 7ce6a47..48787ec 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -1119,6 +1119,14 @@
'-g',
],
}],
+ # At gyp time, we test the linker for ICF support; this flag
+ # is then provided to us by gyp. (Currently only gold supports
+ # an --icf flag.)
+ ['LINKER_SUPPORTS_ICF==1', {
+ 'ldflags': [
+ '-Wl,--icf=safe',
+ ]
+ }],
]
},
},