Note that USE_CWRAPPERS=no is needed for now in cross-compiling.

This is a bug, just need to teach cwrappers about passing sysroot.
This commit is contained in:
riastradh 2019-07-09 15:45:35 +00:00
parent f36aab5cd5
commit 9551dea8e3

View file

@ -1,7 +1,7 @@
Cross-compilation in pkgsrc (user's guide) -*- outline -*-
Taylor R. Campbell <riastradh@NetBSD.org>
$NetBSD: HOWTO-use-crosscompile,v 1.6 2019/07/09 15:45:25 riastradh Exp $
$NetBSD: HOWTO-use-crosscompile,v 1.7 2019/07/09 15:45:35 riastradh Exp $
The following steps enable you to build binary packages for a machine
architecture other than the one you are building on. For example, you
@ -66,6 +66,9 @@ In addition to whatever else you want in your mk.conf for pkgsrc, add:
# XXX Should not need this.
PACKAGES= ${PKGSRCDIR}/packages.${MACHINE_ARCH}
WRKDIR_BASENAME= work.${MACHINE_ARCH}
# XXX cwrappers needs to be taught to pass --sysroot.
USE_CWRAPPERS= no
.endif
You can bootstrap pkgsrc or not; it shouldn't make a difference for