use extern template to fix osx -flto bug - closes #2339

This commit is contained in:
Dane Springmeyer 2014-08-08 14:16:49 -07:00
parent 1dd0675856
commit 578da31702
2 changed files with 5 additions and 0 deletions

View file

@ -58,6 +58,9 @@ private:
bool registered_; bool registered_;
std::set<std::string> plugin_directories_; std::set<std::string> plugin_directories_;
}; };
extern template class singleton<datasource_cache, CreateStatic>;
} }
#endif // MAPNIK_DATASOURCE_CACHE_HPP #endif // MAPNIK_DATASOURCE_CACHE_HPP

View file

@ -42,6 +42,8 @@
namespace mapnik { namespace mapnik {
template class singleton<datasource_cache, CreateStatic>;
extern datasource_ptr create_static_datasource(parameters const& params); extern datasource_ptr create_static_datasource(parameters const& params);
extern std::vector<std::string> get_static_datasource_names(); extern std::vector<std::string> get_static_datasource_names();