summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2017-10-24 01:04:19 +0000
committerkhorben <khorben@pkgsrc.org>2017-10-24 01:04:19 +0000
commita09a271f33c8af5a7e2f3d30f07e985f23a4f8b8 (patch)
tree7a27b4dd0a4efcb1975c74f55c5c8ba9c4e20b3a /net
parent8c20c162e7830ef009a3aedb1f227ee8c539594b (diff)
downloadpkgsrc-a09a271f33c8af5a7e2f3d30f07e985f23a4f8b8.tar.gz
Add support for LDFLAGS
This notably fixes building with RELRO enabled.
Diffstat (limited to 'net')
-rw-r--r--net/dnsmasq/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dnsmasq/Makefile b/net/dnsmasq/Makefile
index ae722ca4a4e..6cb5a943ae9 100644
--- a/net/dnsmasq/Makefile
+++ b/net/dnsmasq/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2017/10/02 15:50:55 wiz Exp $
+# $NetBSD: Makefile,v 1.36 2017/10/24 01:04:19 khorben Exp $
DISTNAME= dnsmasq-2.78
CATEGORIES= net
@@ -35,6 +35,7 @@ CFLAGS.SunOS+= -DNO_IPSET
AUTO_MKDIRS=yes
CFLAGS+= -DCONFFILE='"${PKG_SYSCONFDIR}/dnsmasq.conf"'
MAKE_FLAGS+= COPTS=${CFLAGS:Q}
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
INSTALL_MAKE_FLAGS+= PREFIX="${PREFIX}"
INSTALL_MAKE_FLAGS+= MANDIR="${PREFIX}/${PKGMANDIR}"
INSTALL_MAKE_FLAGS+= LOCALEDIR="${PREFIX}/${PKGLOCALEDIR}"