diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2009-07-21 00:53:17 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2009-07-21 00:53:17 +0800 |
commit | 22ae9b641898ed1c261932d54e8340e25a7c696d (patch) | |
tree | de28d299bd5ae42087daa7a6c58e8a08fe92b269 /security/luasec/files/patch-src-Makefile | |
parent | 17b86cfc53415bd691fa037dd4de45901eb98206 (diff) | |
download | freebsd-ports-gnome-22ae9b641898ed1c261932d54e8340e25a7c696d.tar.gz freebsd-ports-gnome-22ae9b641898ed1c261932d54e8340e25a7c696d.tar.zst freebsd-ports-gnome-22ae9b641898ed1c261932d54e8340e25a7c696d.zip |
- Respect CC/CFLAGS
- Use openssl from ports for older FreeBSD versions
- Add a patch to handle openssl errors properly
- While here, fix building with custom PREFIX/LOCALBASE
PR: 136793
Submitted by: Andrew Lewis <freeghb@gmail.com> (maintainer)
Diffstat (limited to 'security/luasec/files/patch-src-Makefile')
-rw-r--r-- | security/luasec/files/patch-src-Makefile | 27 |
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 + |