Skip to content

Commit ea8d54e

Browse files
committed
[make] Fix lua linking on windows
On windows, we need to explicitly link against lua.dll
1 parent 6d9a7d1 commit ea8d54e

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
SRC = src/luasimdjson.cpp src/simdjson.cpp
22
INCLUDE = -I$(LUA_INCDIR)
3-
LIBS_PATH = -L$(LUA_LIBDIR)
43
LIBS = -lpthread
54
FLAGS = -std=c++11 -Wall $(LIBFLAG) $(CFLAGS)
65

6+
ifdef LUA_LIBDIR
7+
FLAGS += $(LUA_LIBDIR)/$(LUALIB)
8+
endif
9+
710
ifeq ($(OS),Windows_NT)
811
LIBEXT = dll
912
else

lua-simdjson-0.0.2-1.rockspec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,12 @@ build = {
3232
INST_LUADIR="$(LUADIR)",
3333
INST_CONFDIR="$(CONFDIR)",
3434
},
35+
platforms = {
36+
windows = {
37+
build_variables = {
38+
LUA_LIBDIR="$(LUA_LIBDIR)",
39+
LUALIB="$(LUALIB)",
40+
}
41+
}
42+
}
3543
}

0 commit comments

Comments
 (0)