From 268162201884ecfc08f14af28be410aa850cb25d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 23 Feb 2018 01:05:27 +0100 Subject: [PATCH] gluon-web: build with -fvisibility=hidden --- package/gluon-web/src/Makefile | 2 +- package/gluon-web/src/template_lualib.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/gluon-web/src/Makefile b/package/gluon-web/src/Makefile index d1c20898..90b952f0 100644 --- a/package/gluon-web/src/Makefile +++ b/package/gluon-web/src/Makefile @@ -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 diff --git a/package/gluon-web/src/template_lualib.c b/package/gluon-web/src/template_lualib.c index dc8ca666..ac93ab68 100644 --- a/package/gluon-web/src/template_lualib.c +++ b/package/gluon-web/src/template_lualib.c @@ -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;