Skip to content
Snippets Groups Projects
Unverified Commit 26816220 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-web: build with -fvisibility=hidden

parent 43e70f35
No related branches found
No related tags found
No related merge requests found
all: compile all: compile
%.o: %.c %.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -D_GNU_SOURCE -std=c99 -Wall -Wextra -fPIC -c -o $@ $< $(CC) $(CPPFLAGS) $(CFLAGS) -D_GNU_SOURCE -std=c99 -Wall -Wextra -fPIC -fvisibility=hidden -c -o $@ $<
clean: clean:
rm -f parser.so *.o rm -f parser.so *.o
......
...@@ -122,6 +122,7 @@ static const luaL_reg R[] = { ...@@ -122,6 +122,7 @@ static const luaL_reg R[] = {
{} {}
}; };
__attribute__ ((visibility("default")))
LUALIB_API int luaopen_gluon_web_template_parser(lua_State *L) { LUALIB_API int luaopen_gluon_web_template_parser(lua_State *L) {
luaL_register(L, TEMPLATE_LUALIB_META, R); luaL_register(L, TEMPLATE_LUALIB_META, R);
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment