diff --git a/common.gypi b/common.gypi index 13dea600d..540774219 100644 --- a/common.gypi +++ b/common.gypi @@ -951,6 +951,7 @@ # Specifically tell the linker to perform optimizations. # See http://lwn.net/Articles/192624/ . '-Wl,-O1', + '-Wl,--as-needed', ], 'conditions' : [ ['no_gc_sections==0', {