From 8d5bd42477d0866f4de94b17548ed7f3af046a5d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 6 Jun 2008 10:53:33 +0200 Subject: [PATCH] init loglevel. Global variables that are defined in different object files need to be initialised on the Mac. Fixes ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option osl.o private external definition of common _loglevel (size 4) /usr/bin/libtool: internal link edit command failed --- osl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osl.c b/osl.c index 6731e95..0837429 100644 --- a/osl.c +++ b/osl.c @@ -44,7 +44,7 @@ __export const char *osl_strerror(int num) return msgstr.str + errmsgidx[num]; } -int loglevel; +int loglevel = 0; static void __attribute ((constructor)) init_loglevel(void) { -- 2.39.2