folly: fixes for use with `-fvisibility-inlines-hidden`
[folly.git] / folly / detail / ThreadLocalDetail.h
index fcd1a90f57c5ea0ce76be84b94d6849b9d074f72..c04fee1eb95e53213d853b4a8fb24f26ec2021cd 100644 (file)
@@ -325,7 +325,7 @@ struct StaticMeta : StaticMetaBase {
   static StaticMeta<Tag, AccessMode>& instance() {
     // Leak it on exit, there's only one per process and we don't have to
     // worry about synchronization with exiting threads.
-    static auto instance =
+    /* library-local */ static auto instance =
         detail::createGlobal<StaticMeta<Tag, AccessMode>, void>();
     return *instance;
   }