summaryrefslogtreecommitdiff
path: root/devel/lua-lpeg
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-07-12 11:04:59 +0000
committerwiz <wiz@pkgsrc.org>2017-07-12 11:04:59 +0000
commit9a749cbfd3cccbf075b9b6e4e0d8255a6ad395fd (patch)
tree531d181341eba059893b16e9f59db25c9bced478 /devel/lua-lpeg
parentc7884d45a2827103624fd9da529a7112278dbec3 (diff)
downloadpkgsrc-9a749cbfd3cccbf075b9b6e4e0d8255a6ad395fd.tar.gz
Honor LDFLAGS. Fixes RELRO build.
Diffstat (limited to 'devel/lua-lpeg')
-rw-r--r--devel/lua-lpeg/Makefile3
-rw-r--r--devel/lua-lpeg/distinfo3
-rw-r--r--devel/lua-lpeg/patches/patch-makefile15
3 files changed, 18 insertions, 3 deletions
diff --git a/devel/lua-lpeg/Makefile b/devel/lua-lpeg/Makefile
index ab760edec75..5ab9e87e42b 100644
--- a/devel/lua-lpeg/Makefile
+++ b/devel/lua-lpeg/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2017/01/30 21:16:34 alnsn Exp $
-#
+# $NetBSD: Makefile,v 1.14 2017/07/12 11:07:36 wiz Exp $
DISTNAME= lpeg-1.0.1
PKGNAME= ${DISTNAME:S/lpeg/${LUA_PKGPREFIX}-lpeg/}
diff --git a/devel/lua-lpeg/distinfo b/devel/lua-lpeg/distinfo
index 6d4b36a1784..40971481be7 100644
--- a/devel/lua-lpeg/distinfo
+++ b/devel/lua-lpeg/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2017/01/24 08:18:48 alnsn Exp $
+$NetBSD: distinfo,v 1.8 2017/07/12 11:07:36 wiz Exp $
SHA1 (lpeg-1.0.1.tar.gz) = b2f81624e0ce9c99c0731287c3475fac1f1c0f50
RMD160 (lpeg-1.0.1.tar.gz) = ce31666f7d55ad6957c2b274983d7d201fa797dd
SHA512 (lpeg-1.0.1.tar.gz) = 7b43fbee7eff443000986684bc56bba6d2796a31cf860740746c70e155bdea1b62a46b93f97e2747e3ef0f63e965148778ac2985d0f2d83e1e37ec4ebbabf4aa
Size (lpeg-1.0.1.tar.gz) = 71527 bytes
+SHA1 (patch-makefile) = b68221029ee287aa72605f69d679eae45dfa34a3
diff --git a/devel/lua-lpeg/patches/patch-makefile b/devel/lua-lpeg/patches/patch-makefile
new file mode 100644
index 00000000000..c58e0c10639
--- /dev/null
+++ b/devel/lua-lpeg/patches/patch-makefile
@@ -0,0 +1,15 @@
+$NetBSD: patch-makefile,v 1.1 2017/07/12 11:07:36 wiz Exp $
+
+Honor LDFLAGS for RELRO builds.
+
+--- makefile.orig 2017-01-14 18:57:16.000000000 +0000
++++ makefile
+@@ -36,7 +36,7 @@ macosx:
+ make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
+
+ lpeg.so: $(FILES)
+- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
++ env $(CC) $(LDFLAGS) $(DLLFLAGS) $(FILES) -o lpeg.so
+
+ $(FILES): makefile
+