diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | lua-posixtz.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ LUALIBS := -llua -TARGETS := posixtz posixtz.so +TARGETS := posixtz core.so all: $(TARGETS) clean: @@ -9,6 +9,6 @@ clean: posixtz: main.c posixtz.c $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -posixtz.so: lua-posixtz.c posixtz.c +core.so: lua-posixtz.c posixtz.c $(CC) -fPIC $(CFLAGS) $(LDFLAGS) $(LUALIBS) -shared -o $@ $^ diff --git a/lua-posixtz.c b/lua-posixtz.c index 0754f97..a641ac6 100644 --- a/lua-posixtz.c +++ b/lua-posixtz.c @@ -20,7 +20,7 @@ static const luaL_reg R[] = }; -LUALIB_API int luaopen_posixtz(lua_State *L) +LUALIB_API int luaopen_posixtz_core(lua_State *L) { luaL_register(L,MYNAME,R); return 1; |