--- include/log4cpp/Appender.hh.orig +++ include/log4cpp/Appender.hh @@ -161,7 +161,6 @@ static AppenderMapStorage &_appenderMapStorageInstance; }; - static Appender::AppenderMapStorageInitializer appenderMapStorageInitializer; // static initializer for every translation unit typedef std::set AppenderSet; } --- src/Appender.cpp.orig +++ src/Appender.cpp @@ -12,6 +12,7 @@ #include namespace log4cpp { + static Appender::AppenderMapStorageInitializer appenderMapStorageInitializer; // static initializer for every translation unit static int appenders_nifty_counter; // zero initialized at load time static char appenderMapStorage_buf[sizeof(Appender::AppenderMapStorage)]; // memory for the nifty-counter singleton object Appender::AppenderMapStorage &Appender::_appenderMapStorageInstance = reinterpret_cast (appenderMapStorage_buf); // memory for placement new