diff options
author | riz <riz@pkgsrc.org> | 2014-08-28 22:29:37 +0000 |
---|---|---|
committer | riz <riz@pkgsrc.org> | 2014-08-28 22:29:37 +0000 |
commit | ba31a4163291a82df349ad64cb6a72d34a0a4bbb (patch) | |
tree | 1813ed1d74530d30b8c306e7fc6b08266cc6d31c /mk | |
parent | 57bf6deee08c652f77082d3a53f86917624266ed (diff) | |
download | pkgsrc-ba31a4163291a82df349ad64cb6a72d34a0a4bbb.tar.gz |
Make package cross-compiling work through su-target as
well as it does for unprivileged builds. From riastradh.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0a4e70a28bf..4fddf7f1142 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.2001 2014/08/14 11:08:37 jperkin Exp $ +# $NetBSD: bsd.pkg.mk,v 1.2002 2014/08/28 22:29:37 riz Exp $ # # This file is in the public domain. # @@ -624,6 +624,7 @@ _ROOT_CMD= cd ${.CURDIR} && \ PATH=${_PATH_ORIG:Q}:${SU_CMD_PATH_APPEND:Q} \ ${MAKE} ${MAKEFLAGS} _PKGSRC_BARRIER=yes \ PKG_DEBUG_LEVEL=${PKG_DEBUG_LEVEL:Q} \ + ${USE_CROSS_COMPILE:DUSE_CROSS_COMPILE=${USE_CROSS_COMPILE:Q}} \ su-${.TARGET} ${MAKEFLAGS.su-${.TARGET}} .PHONY: su-target |