aboutsummaryrefslogtreecommitdiffstats
path: root/security/luasec/files/patch-src-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'security/luasec/files/patch-src-Makefile')
-rw-r--r--security/luasec/files/patch-src-Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/security/luasec/files/patch-src-Makefile b/security/luasec/files/patch-src-Makefile
new file mode 100644
index 000000000000..3553b6bc40af
--- /dev/null
+++ b/security/luasec/files/patch-src-Makefile
@@ -0,0 +1,27 @@
+--- src/Makefile.orig 2009-05-09 19:11:47.000000000 +0400
++++ src/Makefile 2009-07-16 21:43:41.000000000 +0400
+@@ -13,8 +13,8 @@
+
+ WARN=-Wall -pedantic
+
+-BSD_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS)
+-BSD_LDFLAGS=-O -shared -fpic $(LIBDIR)
++BSD_CFLAGS=-fpic $(WARN) $(INCDIR) $(DEFS)
++BSD_LDFLAGS=-shared -fpic $(LIBDIR)
+
+ LNX_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS)
+ LNX_LDFLAGS=-O -shared -fpic $(LIBDIR)
+@@ -24,10 +24,10 @@
+ MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
+
+ CP=cp
+-CC=gcc
++CC?=gcc
+ LD=$(MYENV) gcc
+-CFLAGS=$(MYCFLAGS)
+-LDFLAGS=$(MYLDFLAGS)
++CFLAGS+=$(MYCFLAGS)
++LDFLAGS+=$(MYLDFLAGS)
+
+ .PHONY: all clean install none linux bsd macosx
+