gluon-web: build with -fvisibility=hidden
This commit is contained in:
parent
43e70f351f
commit
2681622018
@ -1,7 +1,7 @@
|
||||
all: compile
|
||||
|
||||
%.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:
|
||||
rm -f parser.so *.o
|
||||
|
@ -122,6 +122,7 @@ static const luaL_reg R[] = {
|
||||
{}
|
||||
};
|
||||
|
||||
__attribute__ ((visibility("default")))
|
||||
LUALIB_API int luaopen_gluon_web_template_parser(lua_State *L) {
|
||||
luaL_register(L, TEMPLATE_LUALIB_META, R);
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user