From: Andre Noll Date: Fri, 6 Jun 2008 08:53:33 +0000 (+0200) Subject: init loglevel. X-Git-Tag: v0.1.0~69 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=8d5bd42477d0866f4de94b17548ed7f3af046a5d 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 --- 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) {