pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk mk: When using imake, pass LDFLAGS in the environme...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0ca981977dd6
branches: trunk
changeset: 457532:0ca981977dd6
user: nia <nia%pkgsrc.org@localhost>
date: Sat Aug 28 08:07:39 2021 +0000
description:
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:
mk/bsd.pkg.use.mk | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 0119f9a2c189 -r 0ca981977dd6 mk/bsd.pkg.use.mk
--- a/mk/bsd.pkg.use.mk Sat Aug 28 08:03:31 2021 +0000
+++ b/mk/bsd.pkg.use.mk Sat Aug 28 08:07:39 2021 +0000
@@ -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 @@
.if defined(USE_IMAKE)
MAKE_FLAGS+= CC=${CC:Q} CXX=${CXX:Q}
+MAKE_FLAGS+= LOCAL_LDFLAGS=${LDFLAGS:Q}
.endif
PREFIX= ${LOCALBASE}
Home |
Main Index |
Thread Index |
Old Index