aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-stringy/link-to-correct-lua-version.patch
blob: e7ecc5d363bb7ac854a8cc479f9e73b77625b02c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- lua-projects-0.4/stringy/Makefile
+++ lua-projects-0.4.libs/stringy/Makefile
@@ -1,6 +1,7 @@
 LUA ?= lua5.1
 LUA_PC ?= lua5.1
 LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags)
+LUA_LDFLAGS = $(shell pkg-config $(LUA_PC) --libs)
 
 CFLAGS ?= -O3 -Wall -Werror
 
@@ -12,7 +13,7 @@
 stringy.o: fastsearch.h
 
 stringy.so: stringy.o stringy_test.lua
-	$(CC) -shared stringy.o -o $@
+	$(CC) -shared $(LUA_LDFLAGS) stringy.o -o $@
 	$(LUA) stringy_test.lua
 
 clean: