]> git.tuebingen.mpg.de Git - osl.git/commitdiff
init loglevel.
authorAndre Noll <maan@systemlinux.org>
Fri, 6 Jun 2008 08:53:33 +0000 (10:53 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 6 Jun 2008 08:53:33 +0000 (10:53 +0200)
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

diff --git a/osl.c b/osl.c
index 6731e954c4673738544c3c7ca6092a779bac80d1..08374299cc26d9ac3128bd73858b605ffaf201fb 100644 (file)
--- a/osl.c
+++ b/osl.c
@@ -44,7 +44,7 @@ __export const char *osl_strerror(int num)
        return msgstr.str + errmsgidx[num];
 }
 
        return msgstr.str + errmsgidx[num];
 }
 
-int loglevel;
+int loglevel = 0;
 
 static void __attribute ((constructor)) init_loglevel(void)
 {
 
 static void __attribute ((constructor)) init_loglevel(void)
 {