From c7f99c7ba5c71ef803c3e4598bf98faee7976b62 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 7 Jan 2020 15:21:03 +0100 Subject: [PATCH] build: turn on -fno-common to catch regressions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/libuv/libuv/issues/2603 PR-URL: https://github.com/libuv/libuv/pull/2604 Reviewed-By: Saúl Ibarra Corretgé Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno Reviewed-By: Jameson Nash --- common.gypi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common.gypi b/common.gypi index 2297bdf0..8e2aa716 100644 --- a/common.gypi +++ b/common.gypi @@ -35,7 +35,7 @@ }, 'conditions': [ ['OS != "zos"', { - 'cflags': [ '-O0', '-fwrapv' ] + 'cflags': [ '-O0', '-fno-common', '-fwrapv' ] }], ['OS == "android"', { 'cflags': [ '-fPIE' ], @@ -80,9 +80,10 @@ 'conditions': [ ['OS != "zos"', { 'cflags': [ - '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections', + '-fno-common', + '-fomit-frame-pointer', ], }], ]