From 71544c5ecae20123a328e08a04b7f1587c4cdbbd 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 811a7b3da3d..ac06e55b181 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',