aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-socket/lua-cflags.patch
blob: be205f4b0417dae700f996675cca1ab33fba8e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/makefile.orig
+++ ./src/makefile
@@ -156,6 +156,8 @@
 #------
 # Compiler and linker settings
 # for Linux
+LUAPC=lua$(LUAV)
+LUA_CFLAGS=$(shell pkg-config --cflags $(LUAPC))
 SO_linux=so
 O_linux=o
 CC_linux=gcc
@@ -163,7 +165,7 @@
 	-DLUASOCKET_API='__attribute__((visibility("default")))' \
 	-DUNIX_API='__attribute__((visibility("default")))' \
 	-DMIME_API='__attribute__((visibility("default")))'
-CFLAGS_linux= -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
+CFLAGS_linux= $(LUA_CFLAGS) -I$(LUAINC) $(DEF) -Wall -Wshadow -Wextra \
 	-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
 LDFLAGS_linux=-O -shared -fpic -o 
 LD_linux=gcc