pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rust: insist on internal llvm on NetBSD/sparc64.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Mon Feb 20 09:21:37 2023 +0100
Changeset:	ef140266771d0ea93188f93c033891fa018184b5

Modified Files:
	rust/options.mk

Log Message:
rust: insist on internal llvm on NetBSD/sparc64.

...because external libunwind is un-buildable.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ef140266771d0ea93188f93c033891fa018184b5

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 rust/options.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diffs:
diff --git a/rust/options.mk b/rust/options.mk
index 6529f432cb..ab8352e3f7 100644
--- a/rust/options.mk
+++ b/rust/options.mk
@@ -19,6 +19,12 @@ PKG_SUGGESTED_OPTIONS+=		rust-internal-llvm
 PKG_SUGGESTED_OPTIONS+=		rust-internal-llvm
 .endif
 
+# (NetBSD)/sparc64 systems fail to build libunwind,
+# a dependency of pkgsrc llvm, so use the internal one instead
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64)
+PKG_SUGGESTED_OPTIONS+=		rust-internal-llvm
+.endif
+
 # Bundle OpenSSL and curl into the cargo binary when producing
 # bootstraps on NetBSD.
 .if ${OPSYS} == "NetBSD" && ${BUILD_TARGET} == "dist"


Home | Main Index | Thread Index | Old Index