aports/testing/lua5.2-socket/lua-cflags.patch
Natanael Copa 2071623eba testing/lua5.2-socket: new aport
Luasocket is the most comprehensive networking support library for the Lua language.
http://luaforge.net/projects/luasocket/
2013-07-09 14:24:19 +00:00

21 lines
738 B
Diff

--- ./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