summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2020-07-16 09:35:37 +0000
committerjperkin <jperkin@pkgsrc.org>2020-07-16 09:35:37 +0000
commitffa3d2a5153f8be7f1434e2f2fd60c32a279e6ee (patch)
treeb5ddec7ce91ccebf1426df89e6a6f9cdbc49c4d8 /lang/rust
parenta4de71c5c5a3f6eb6a195a9949e33f3c2e6b42c9 (diff)
downloadpkgsrc-ffa3d2a5153f8be7f1434e2f2fd60c32a279e6ee.tar.gz
rust: Update cross instructions for illumos.
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/cross.mk21
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}