summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2017-11-08 03:52:50 +0000
committerkhorben <khorben@pkgsrc.org>2017-11-08 03:52:50 +0000
commitf1f8068f5381b849e2c597841304c722a09bb2e5 (patch)
tree96707a96e55dce4294a338a15a6b3a87caf5dada /mk
parentf981d3a4b0748e09a11d0f38087d6159b886edd3 (diff)
downloadpkgsrc-f1f8068f5381b849e2c597841304c722a09bb2e5.tar.gz
Configure "append_executable" adequately for cwrappers
Match cwrappers' expectations and place an argument per line in the configuration. Tokenize the arguments when writing the configuration instead of inside cwrappers. This should fix PKGSRC_MKPIE.
Diffstat (limited to 'mk')
-rw-r--r--mk/cwrappers.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/cwrappers.mk b/mk/cwrappers.mk
index ca6fbd9d3b9..5d544548b3c 100644
--- a/mk/cwrappers.mk
+++ b/mk/cwrappers.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cwrappers.mk,v 1.29 2017/08/25 01:43:17 khorben Exp $
+# $NetBSD: cwrappers.mk,v 1.30 2017/11/08 03:52:50 khorben Exp $
#
# This Makefile fragment implements integration of pkgtools/cwrappers.
@@ -89,7 +89,9 @@ generate-cwrappers:
${RUN}ln -s ${CWRAPPERS_SRC_DIR}/${CWRAPPERS_CONFIG.${wrappee}}-wrapper ${WRAPPER_BINDIR}/${alias}
. endfor
. if ${_PKGSRC_MKPIE} == "yes"
- ${RUN}echo append_executable=${_MKPIE_LDFLAGS.gcc} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
+. for arg in ${_MKPIE_LDFLAGS.gcc}
+ ${RUN}echo append_executable=${arg} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
+. endfor
. endif
.endfor