From b8649e3a5e21e64cd181f2de470b885fc529b2fc Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Wed, 6 Apr 2016 12:10:07 +0200 Subject: [PATCH] build: remove -f{data,function}-sections flags We don't link with `--gc-sections` because it's unreliable with some toolchains, so all these flags do is make the compiler generate slightly worse code. Drop them. Refs: https://github.com/nodejs/node/pull/6056 PR-URL: https://github.com/nodejs/node/pull/6077 Reviewed-By: Trevor Norris --- common.gypi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.gypi b/common.gypi index 811a7b3da3d502..ac06e55b181e67 100644 --- a/common.gypi +++ b/common.gypi @@ -95,7 +95,7 @@ 'variables': { 'v8_enable_handle_zapping': 0, }, - 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ], + 'cflags': [ '-O3' ], 'conditions': [ ['target_arch=="x64"', { 'msvs_configuration_platform': 'x64',