summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2021-08-28 08:07:39 +0000
committernia <nia@pkgsrc.org>2021-08-28 08:07:39 +0000
commitf3eeb0875a60d1c02c614e5978e946977be823be (patch)
treec7e513e8c99a8c2267cb30c956e6350601632752 /mk
parent2c25f4ab30f8b28676c79451c545d952a4cda0c2 (diff)
downloadpkgsrc-f3eeb0875a60d1c02c614e5978e946977be823be.tar.gz
mk: When using imake, pass LDFLAGS in the environment as LOCAL_LDFLAGS.
This allows RELRO to be used when building imake packages. XXX: I'm not certain if this is the right place, but this already seems to be cargo-culted in individual package Makefiles...
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.use.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.use.mk b/mk/bsd.pkg.use.mk
index 4261871e778..1841fdbd772 100644
--- a/mk/bsd.pkg.use.mk
+++ b/mk/bsd.pkg.use.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.use.mk,v 1.69 2020/03/12 00:12:23 rillig Exp $
+# $NetBSD: bsd.pkg.use.mk,v 1.70 2021/08/28 08:07:39 nia Exp $
#
# Turn USE_* macros into proper depedency logic. Included near the top of
# bsd.pkg.mk, after bsd.prefs.mk.
@@ -52,6 +52,7 @@ PLIST_SUBST+= IMAKE_MANNEWSUFFIX=${IMAKE_MANNEWSUFFIX:Q}
.if defined(USE_IMAKE)
MAKE_FLAGS+= CC=${CC:Q} CXX=${CXX:Q}
+MAKE_FLAGS+= LOCAL_LDFLAGS=${LDFLAGS:Q}
.endif
PREFIX= ${LOCALBASE}