From 156e745be9f6a1b19b0f8e2a931148786d7acad4 Mon Sep 17 00:00:00 2001 From: Dan Cross Date: Wed, 23 Jul 2025 06:47:21 -0400 Subject: all: remove need for `-fcommon` Use `extern` where appropriate so that we can remove `-fcommon` on macOS and others. On macOS, `-fcommon` generates a number of linker warnings. I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD and illumos. I am not in a position to test on AIX or other more esoteric platforms, however. --- src/cmd/db/setup.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cmd/db') diff --git a/src/cmd/db/setup.c b/src/cmd/db/setup.c index 15a196e1..892e2c9f 100644 --- a/src/cmd/db/setup.c +++ b/src/cmd/db/setup.c @@ -4,12 +4,12 @@ #include "defs.h" #include "fns.h" -char *symfil; -char *corfil; +extern char *symfil; +extern char *corfil; -Map *symmap; -Map *cormap; -Regs *correg; +extern Map *symmap; +extern Map *cormap; +extern Regs *correg; Map *dotmap; void -- cgit v1.2.3