diff options
author | jperkin <jperkin@pkgsrc.org> | 2020-07-16 09:35:37 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2020-07-16 09:35:37 +0000 |
commit | ffa3d2a5153f8be7f1434e2f2fd60c32a279e6ee (patch) | |
tree | b5ddec7ce91ccebf1426df89e6a6f9cdbc49c4d8 /lang | |
parent | a4de71c5c5a3f6eb6a195a9949e33f3c2e6b42c9 (diff) | |
download | pkgsrc-ffa3d2a5153f8be7f1434e2f2fd60c32a279e6ee.tar.gz |
rust: Update cross instructions for illumos.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/rust/cross.mk | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/lang/rust/cross.mk b/lang/rust/cross.mk index 67d45a23999..3ae16dfd9a8 100644 --- a/lang/rust/cross.mk +++ b/lang/rust/cross.mk @@ -1,4 +1,4 @@ -# $NetBSD: cross.mk,v 1.2 2020/07/08 14:46:14 jperkin Exp $ +# $NetBSD: cross.mk,v 1.3 2020/07/16 09:35:37 jperkin Exp $ # These settings may be used to cross-build rust. # @@ -50,9 +50,18 @@ #MAKE_ENV+= OPENSSL_DIR=/usr # -# Cross-compile illumos target. The host is identical, it's just the target that -# has been renamed. +# Cross-compile illumos target. The host is identical, it's just the target +# that is renamed from x86_64-sun-solaris to x86_64-unknown-illumos. # -#CONFIGURE_ARGS+= --set=target.x86_64-unknown-illumos.llvm-config=${BUILDLINK_PREFIX.llvm}/bin/llvm-config -#CONFIGURE_ARGS+= --host=x86_64-unknown-illumos -#CONFIGURE_ARGS+= --target=x86_64-unknown-illumos +#TARGET= x86_64-unknown-illumos +# +# Use these variables for "cross-compiling" from x86_64-sun-solaris. +# +#CONFIGURE_ARGS+= --set=target.${TARGET}.llvm-config=${LLVM_CONFIG_PATH} +#CONFIGURE_ARGS+= --host=${TARGET} +#CONFIGURE_ARGS+= --target=${TARGET} +# +# Set this variable when using a native x86_64-unknown-illumos bootstrap, as +# the build still defaults to x86_64-sun-solaris based on uname. +# +#CONFIGURE_ARGS+= --build=${TARGET} |