From e4abe9177ea7065ba9a8cf82521daedc85e982eb Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 4 Aug 2025 21:06:07 -0400 Subject: [PATCH] build: Turn on -fno-common globally Can make global variable access more efficient at the price of erroring out if a variable is declared in more than one place. Change-Id: I918eacf4a4c8c7827be64f7f2ee04cc6cc2009e0 --- tools/configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/configure b/tools/configure index 9ff6affd25..b66a015564 100755 --- a/tools/configure +++ b/tools/configure @@ -8,7 +8,7 @@ # # global CC options for all platforms -CCOPTS="-W -Wall -Wextra -Wundef -Os -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99 -funit-at-a-time -fno-delete-null-pointer-checks -fno-strict-overflow" +CCOPTS="-W -Wall -Wextra -Wundef -Os -nostdlib -ffreestanding -Wstrict-prototypes -pipe -std=gnu99 -funit-at-a-time -fno-delete-null-pointer-checks -fno-strict-overflow -fno-common" # LD options for the core LDOPTS=""