pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
rust/options.mk: use internal LLVM on NetBSD < 9.
Module Name: pkgsrc-wip
Committed By: Havard Eidnes <he%uninett.no@localhost>
Pushed By: he
Date: Sat Aug 27 12:03:33 2022 +0200
Changeset: 7b7c97103c4df949ffa61852a0e8a3adf92a0d20
Modified Files:
rust/options.mk
Log Message:
rust/options.mk: use internal LLVM on NetBSD < 9.
Issues have been observed on i386 and powerpc.
This problem is caused by the shenanigans files/gcc-wrap is up to,
bypassing the gcc wrappers. On NetBSD < 9, this causes a mis-match
between ABI marking between pkgsrc LLVM and what rust expects; several
functions in LLVM will be marked abi:cxx11, causing a mismatch.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=7b7c97103c4df949ffa61852a0e8a3adf92a0d20
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
rust/options.mk | 4 ++++
1 file changed, 4 insertions(+)
diffs:
diff --git a/rust/options.mk b/rust/options.mk
index 1fd629a171..2fca6d9ab7 100644
--- a/rust/options.mk
+++ b/rust/options.mk
@@ -15,7 +15,11 @@ PKG_SUGGESTED_OPTIONS+= rust-internal-llvm
# As of 1.61, the pkgsrc LLVM causes build failure on i386 and powerpc
. if ${OPSYS} == "NetBSD"
. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "powerpc"
+# In-tree g++ is too old on NetBSD 8.x and due to the shenanigans
+# files/gcc-wrap does, we need the internal LLVM
+. if !empty(OS_VERSION:M8.*)
PKG_SUGGESTED_OPTIONS+= rust-internal-llvm
+. endif
. endif
. endif
.endif
Home |
Main Index |
Thread Index |
Old Index