summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2017-07-06 13:04:28 +0000
committerwiz <wiz@pkgsrc.org>2017-07-06 13:04:28 +0000
commit9dc421bdefa54885ea889a7235e7cbc247be04d1 (patch)
tree9ac332cc8d413e62f56c4773f021a9f4e93c0f1c /misc
parentc67cb24a262e8b59ab5dc6980ee6bb8b284a1125 (diff)
downloadpkgsrc-9dc421bdefa54885ea889a7235e7cbc247be04d1.tar.gz
Honor pkgsrc CFLAGS and LDFLAGS. Fixes RELRO build.
Diffstat (limited to 'misc')
-rw-r--r--misc/rhash/distinfo3
-rw-r--r--misc/rhash/patches/patch-Makefile17
2 files changed, 19 insertions, 1 deletions
diff --git a/misc/rhash/distinfo b/misc/rhash/distinfo
index a3615d66b23..80c2b721ead 100644
--- a/misc/rhash/distinfo
+++ b/misc/rhash/distinfo
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.6 2017/04/13 09:40:36 jperkin Exp $
+$NetBSD: distinfo,v 1.7 2017/07/06 13:04:28 wiz Exp $
SHA1 (rhash-1.3.4.tar.gz) = fc4610084b8b5a8d20ef0b788381709921ada8bb
RMD160 (rhash-1.3.4.tar.gz) = 00225455818941f6e59b398854f128687465448b
SHA512 (rhash-1.3.4.tar.gz) = 1d6af41f98588005ad2dcabdf479a30f7e4e6b59d56b322702827470e6eaa9a6905e9c1424f778b90488f04e719aa3b2985b92820b7da40ae30f2968339990c0
Size (rhash-1.3.4.tar.gz) = 309181 bytes
+SHA1 (patch-Makefile) = 04a890dcfae086b2984f294833eca300ce6b8128
SHA1 (patch-librhash_byte__order.h) = 04b5b1f75ec2e20e301f9cf1a055df1b260a8912
diff --git a/misc/rhash/patches/patch-Makefile b/misc/rhash/patches/patch-Makefile
new file mode 100644
index 00000000000..3618e332d6f
--- /dev/null
+++ b/misc/rhash/patches/patch-Makefile
@@ -0,0 +1,17 @@
+$NetBSD: patch-Makefile,v 1.1 2017/07/06 13:04:28 wiz Exp $
+
+Use pkgsrc CFLAGS and LDFLAGS.
+
+--- Makefile.orig 2016-11-06 20:12:16.000000000 +0000
++++ Makefile 2017-07-06 13:01:57.925655166 +0000
+@@ -8,8 +8,8 @@
+ # using OPTFLAGS/OPTLDFLAGS for compatibilty with old scripts using this makefile
+ OPTFLAGS = -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
+ OPTLDFLAGS =
+-CFLAGS = $(OPTFLAGS)
+-LDFLAGS = $(OPTLDFLAGS)
++CFLAGS += $(OPTFLAGS)
++LDFLAGS += $(OPTLDFLAGS)
+ ADDCFLAGS =
+ ADDLDFLAGS =
+ ALLCFLAGS = -pipe $(CFLAGS) $(ADDCFLAGS) \