From 578da317020e267021776568f19e850cdd111ce3 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 8 Aug 2014 14:16:49 -0700 Subject: [PATCH] use extern template to fix osx -flto bug - closes #2339 --- include/mapnik/datasource_cache.hpp | 3 +++ src/datasource_cache.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/mapnik/datasource_cache.hpp b/include/mapnik/datasource_cache.hpp index 556097a16..6646888bd 100644 --- a/include/mapnik/datasource_cache.hpp +++ b/include/mapnik/datasource_cache.hpp @@ -58,6 +58,9 @@ private: bool registered_; std::set plugin_directories_; }; + +extern template class singleton; + } #endif // MAPNIK_DATASOURCE_CACHE_HPP diff --git a/src/datasource_cache.cpp b/src/datasource_cache.cpp index 08af17caa..152107ba1 100644 --- a/src/datasource_cache.cpp +++ b/src/datasource_cache.cpp @@ -42,6 +42,8 @@ namespace mapnik { +template class singleton; + extern datasource_ptr create_static_datasource(parameters const& params); extern std::vector get_static_datasource_names();