From 150f1a10f71ddd29e5a99e7e906b3e92b7a9ff3b Mon Sep 17 00:00:00 2001 From: khorben Date: Tue, 24 Oct 2017 01:04:19 +0000 Subject: [PATCH] Add support for LDFLAGS This notably fixes building with RELRO enabled. --- net/dnsmasq/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/dnsmasq/Makefile b/net/dnsmasq/Makefile index ae722ca4a4e2..6cb5a943ae9a 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}"