aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-socket/lua-cflags.patch
blob: eace4258aaddf9e8e33242f7530306d7294f250b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ./src/makefile.orig	2013-07-09 14:20:08.772827698 +0000
+++ ./src/makefile	2013-07-09 14:22:46.311231590 +0000
@@ -142,6 +142,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
@@ -149,7 +151,7 @@
 	-DLUASOCKET_API='__attribute__((visibility("default")))' \
 	-DUNIX_API='__attribute__((visibility("default")))' \
 	-DMIME_API='__attribute__((visibility("default")))'
-CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
+CFLAGS_linux= $(LUA_CFLAGS) -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
 	-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
 LDFLAGS_linux=-O -shared -fpic -o 
 LD_linux=gcc