From 1f2b632aee460e60c005e8d75a6bc27f11f27923 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 4 Feb 2014 16:09:08 -0500 Subject: [PATCH] FS-5999: set visibility on lua symbols that are supposed to be exported --- src/mod/languages/mod_lua/lua/luaconf.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mod/languages/mod_lua/lua/luaconf.h b/src/mod/languages/mod_lua/lua/luaconf.h index df802c9526..203b033be8 100644 --- a/src/mod/languages/mod_lua/lua/luaconf.h +++ b/src/mod/languages/mod_lua/lua/luaconf.h @@ -150,7 +150,12 @@ #else /* }{ */ -#define LUA_API extern +#if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(HAVE_VISIBILITY) && (defined(LUA_CORE) || defined(LUA_LIB)) +#define LUA_API __attribute__((visibility("default"))) +#else +#define LUA_API extern +#endif +#endif #endif /* } */