diff options
Diffstat (limited to 'main/lua-socket/lua-cflags.patch')
-rw-r--r-- | main/lua-socket/lua-cflags.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/main/lua-socket/lua-cflags.patch b/main/lua-socket/lua-cflags.patch new file mode 100644 index 0000000000..eace4258aa --- /dev/null +++ b/main/lua-socket/lua-cflags.patch @@ -0,0 +1,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 |