openbsd-ports/security/luasec/patches/patch-src_Makefile
gsoares 894e157435 - update security/luasec to 0.4.1
- tweaks patch-src_Makefile from sthen@ and jolan@
- remove jolan@ as maintainer per his request
- take maintainership

OK sthen@ jolan@
"get it in" jasper@
2011-06-10 15:04:23 +00:00

26 lines
772 B
Plaintext

$OpenBSD: patch-src_Makefile,v 1.3 2011/06/10 15:04:23 gsoares Exp $
--- src/Makefile.orig Wed Mar 2 00:09:20 2011
+++ src/Makefile Wed Jun 8 10:14:13 2011
@@ -13,8 +13,8 @@ LIBS=-lssl -lcrypto
WARN=-Wall -pedantic
-BSD_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS)
-BSD_LDFLAGS=-O -shared -fpic $(LIBDIR)
+BSD_CFLAGS=$(SAVECFLAGS) -fpic $(WARN) $(INCDIR) $(DEFS)
+BSD_LDFLAGS=-shared -fpic $(LIBDIR)
LNX_CFLAGS=-O2 -fpic $(WARN) $(INCDIR) $(DEFS)
LNX_LDFLAGS=-O -shared -fpic $(LIBDIR)
@@ -23,8 +23,8 @@ MAC_ENV=env MACOSX_DEPLOYMENT_TARGET='$(MACVER)'
MAC_CFLAGS=-O2 -fno-common $(WARN) $(INCDIR) $(DEFS)
MAC_LDFLAGS=-bundle -undefined dynamic_lookup $(LIBDIR)
-CC=gcc
-LD=$(MYENV) gcc
+CC?=gcc
+LD=$(MYENV) $(CC)
CFLAGS=$(MYCFLAGS)
LDFLAGS=$(MYLDFLAGS)