pkgsrc/net/lua-socket/patches/patch-aa
fhajny da52278dac Import lua-socket-2.0.2 as net/lua-socket.
Lua extension library that is composed by two parts: a C core that provides
support for the TCP and UDP transport layers, and a set of Lua modules that
add support for functionality commonly needed by applications that deal
with the Internet.

(Based on wip/luasocket.)
2010-09-21 10:08:48 +00:00

20 lines
479 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2010/09/21 10:08:48 fhajny Exp $
Let CFLAGS/LDFLAGS merge with pkgsrc's ones
--- config.orig 2007-10-15 04:21:05.000000000 +0000
+++ config
@@ -49,10 +49,10 @@ INSTALL_EXEC=cp
#------
# Compiler and linker settings
# for Linux
-CC=gcc
+CC?=gcc
DEF=-DLUASOCKET_DEBUG
-CFLAGS= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
-LDFLAGS=-O -shared -fpic
+CFLAGS+= $(LUAINC) $(DEF) -pedantic -Wall -O2 -fpic
+LDFLAGS+=-O -shared -fpic
LD=gcc
#------