Import of pkgsrc-2014Q1
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
$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
|
||||
|
||||
#------
|
||||
14
net/lua-socket/patches/patch-makefile
Normal file
14
net/lua-socket/patches/patch-makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
$NetBSD: patch-makefile,v 1.1 2013/09/13 14:24:28 fhajny Exp $
|
||||
|
||||
Pass our LDFLAGS.
|
||||
--- makefile.orig 2013-06-14 11:27:32.000000000 +0000
|
||||
+++ makefile
|
||||
@@ -15,7 +15,7 @@ PLATS= macosx linux win32 mingw
|
||||
all: $(PLAT)
|
||||
|
||||
$(PLATS) none install install-unix local clean:
|
||||
- $(MAKE) -C src $@
|
||||
+ $(MAKE) -C src $@ MYLDFLAGS="$(LDFLAGS)"
|
||||
|
||||
print:
|
||||
$(MAKE) -C src $@
|
||||
14
net/lua-socket/patches/patch-src_makefile
Normal file
14
net/lua-socket/patches/patch-src_makefile
Normal file
@@ -0,0 +1,14 @@
|
||||
$NetBSD: patch-src_makefile,v 1.1 2013/09/13 14:24:28 fhajny Exp $
|
||||
|
||||
Pass our LDFLAGS.
|
||||
--- src/makefile.orig 2013-06-14 11:27:32.000000000 +0000
|
||||
+++ src/makefile
|
||||
@@ -151,7 +151,7 @@ DEF_linux=-DLUASOCKET_$(DEBUG) -DLUA_$(C
|
||||
-DMIME_API='__attribute__((visibility("default")))'
|
||||
CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
|
||||
-Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
|
||||
-LDFLAGS_linux=-O -shared -fpic -o
|
||||
+LDFLAGS_linux=-O -shared -fpic $(MYLDFLAGS) -o
|
||||
LD_linux=gcc
|
||||
SOCKET_linux=usocket.o
|
||||
|
||||
Reference in New Issue
Block a user