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/libthread/thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libthread') diff --git a/src/libthread/thread.c b/src/libthread/thread.c index 79e0ec71..b5bfed3e 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -690,6 +690,7 @@ threadrwakeup(Rendez *r, int all, ulong pc) static int threadargc; static char **threadargv; +#pragma weak mainstacksize int mainstacksize; extern int _p9usepwlibrary; /* getgrgid etc. smash the stack - tell _p9dir just say no */ static void -- cgit v1.2.3