pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/rhash Add support for CFLAGS and LDFLAGS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb990289ae87
branches:  trunk
changeset: 371638:fb990289ae87
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Thu Nov 16 01:28:12 2017 +0000

description:
Add support for CFLAGS and LDFLAGS

This notably fixes building with MKPIE or RELRO enabled.

Bump PKGREVISION, since this generates a different binary now that SSP and
FORTIFY are enabled.

diffstat:

 misc/rhash/Makefile |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r a0335ad167a8 -r fb990289ae87 misc/rhash/Makefile
--- a/misc/rhash/Makefile       Thu Nov 16 01:18:12 2017 +0000
+++ b/misc/rhash/Makefile       Thu Nov 16 01:28:12 2017 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2017/08/15 08:37:47 adam Exp $
+# $NetBSD: Makefile,v 1.6 2017/11/16 01:28:12 khorben Exp $
 
 DISTNAME=      rhash-1.3.5
+PKGREVISION=   1
 CATEGORIES=    security
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=rhash/}
 GITHUB_PROJECT=        RHash
@@ -14,6 +15,9 @@
 WRKSRC=                        ${WRKDIR}/${DISTNAME:S/rh/RH/}
 INSTALLATION_DIRS=     bin include lib ${PKGMANDIR}/man1 share/examples/rhash
 
+MAKE_FLAGS+=   ADDCFLAGS=${CFLAGS:Q}
+MAKE_FLAGS+=   ADDLDFLAGS=${LDFLAGS:Q}
+
 CONF_FILES+=           ${PREFIX}/share/examples/rhash/rhashrc ${PKG_SYSCONFDIR}/rhashrc
 
 do-install:



Home | Main Index | Thread Index | Old Index