summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorriastradh <riastradh@pkgsrc.org>2022-04-04 11:22:50 +0000
committerriastradh <riastradh@pkgsrc.org>2022-04-04 11:22:50 +0000
commitf59201716cdf618577c3e831414020db7e8d5974 (patch)
treeedc05e35ac8b6871f8488099907c5668989a947e /doc
parente405f4f0507e63289b1917bb1b73892a15f1ff83 (diff)
downloadpkgsrc-f59201716cdf618577c3e831414020db7e8d5974.tar.gz
cwrappers: Add cross-compilation support.
- New option `sysroot=<dir>': . Wrapper will add `--sysroot=<dir>' as first argument. . For every rpath argument, e.g. -Wl,-R<path> to cc, wrapper will pass `-rpath-link <dir><path>' to the linker. This matches the old mk/wrapper/cmd-sink-cross-* logic. - Create wrappers for the ${MACHINE_GNU_PLATFORM}-cc style of command, as in ${CC}, ${CXX}, ${LD} for cross-builds. - Bump version. - Use TOOL_DEPENDS, not BUILD_DEPENDS, for cwrappers.
Diffstat (limited to 'doc')
-rw-r--r--doc/HOWTO-use-crosscompile5
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/HOWTO-use-crosscompile b/doc/HOWTO-use-crosscompile
index 03c02f7da7a..6986234c7b4 100644
--- a/doc/HOWTO-use-crosscompile
+++ b/doc/HOWTO-use-crosscompile
@@ -1,7 +1,7 @@
Cross-compilation in pkgsrc (user's guide) -*- outline -*-
Taylor R. Campbell <riastradh@NetBSD.org>
-$NetBSD: HOWTO-use-crosscompile,v 1.7 2019/07/09 15:45:35 riastradh Exp $
+$NetBSD: HOWTO-use-crosscompile,v 1.8 2022/04/04 11:22:50 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,9 +66,6 @@ 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