From 4b2f030529607f525e619dd21e4357f34001b652 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Wed, 17 Jul 2024 13:40:28 +0100 Subject: [PATCH] [make] Remove broken -L flag LUA_LIBDIR is not available on most platforms, so this gives an empty variable which means -L swallows up the -lpthread flag. --- Makefile | 3 +-- lua-simdjson-0.0.2-1.rockspec | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dbd00f9..ba606a1 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/lua-simdjson-0.0.2-1.rockspec b/lua-simdjson-0.0.2-1.rockspec index 5e28ff9..8b1ec5e 100644 --- a/lua-simdjson-0.0.2-1.rockspec +++ b/lua-simdjson-0.0.2-1.rockspec @@ -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)",