Skip to content

Commit

Permalink
[make] Remove broken -L flag
Browse files Browse the repository at this point in the history
LUA_LIBDIR is not available on most platforms, so this gives an empty
variable which means -L swallows up the -lpthread flag.
  • Loading branch information
tobil4sk committed Jul 17, 2024
1 parent f824840 commit 4b2f030
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
SRC = src/luasimdjson.cpp src/simdjson.cpp
INCLUDE = -I$(LUA_INCDIR)
LIBS_PATH = -L$(LUA_LIBDIR)
LIBS = -lpthread
FLAGS = -std=c++11 -Wall $(LIBFLAG) $(CFLAGS)

all: simdjson.so

simdjson.so:
$(CXX) $(SRC) $(FLAGS) $(INCLUDE) $(LIBS_PATH) $(LIBS) -o $@
$(CXX) $(SRC) $(FLAGS) $(INCLUDE) $(LIBS) -o $@

clean:
rm *.so
Expand Down
1 change: 0 additions & 1 deletion lua-simdjson-0.0.2-1.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ build = {
build_variables = {
CFLAGS="$(CFLAGS)",
LIBFLAG="$(LIBFLAG)",
LUA_LIBDIR="$(LUA_LIBDIR)",
LUA_BINDIR="$(LUA_BINDIR)",
LUA_INCDIR="$(LUA_INCDIR)",
LUA="$(LUA)",
Expand Down

0 comments on commit 4b2f030

Please sign in to comment.