From 2071623ebaa60880b38e9abf7fc1ffa431b7087a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 9 Jul 2013 14:24:19 +0000 Subject: testing/lua5.2-socket: new aport Luasocket is the most comprehensive networking support library for the Lua language. http://luaforge.net/projects/luasocket/ --- testing/lua5.2-socket/lua-cflags.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 testing/lua5.2-socket/lua-cflags.patch (limited to 'testing/lua5.2-socket/lua-cflags.patch') diff --git a/testing/lua5.2-socket/lua-cflags.patch b/testing/lua5.2-socket/lua-cflags.patch new file mode 100644 index 0000000000..eace4258aa --- /dev/null +++ b/testing/lua5.2-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 -- cgit v1.2.3