diff options
author | he <he@pkgsrc.org> | 2022-04-18 14:59:59 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2022-04-18 14:59:59 +0000 |
commit | 4c0cb9a4dd8788ed2297d499ab12acd96e7d25d4 (patch) | |
tree | 62c2deb80cc2bd762660a3c54fb63f7fa936d624 /lang/rust | |
parent | 5cbfb2899f680f2e05020447f84107f1c1ca9cad (diff) | |
download | pkgsrc-4c0cb9a4dd8788ed2297d499ab12acd96e7d25d4.tar.gz |
rust: default to rust-llvm on NetBSD/sparc64.
(NetBSD)/sparc64 systems fail to build libunwind 13.0.1,
and libunwind is depended on here unless rust-llvm is turned
on. The latter succeeds, though. So default to using
rust-llvm on NetBSD/sparc64.
Ref. PR#56791
Diffstat (limited to 'lang/rust')
-rw-r--r-- | lang/rust/options.mk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/rust/options.mk b/lang/rust/options.mk index b87dd267e57..2efaf460aba 100644 --- a/lang/rust/options.mk +++ b/lang/rust/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.20 2022/04/15 14:00:37 he Exp $ +# $NetBSD: options.mk,v 1.21 2022/04/18 14:59:59 he Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.rust PKG_SUPPORTED_OPTIONS+= rust-cargo-static rust-docs @@ -20,6 +20,15 @@ PKG_SUGGESTED_OPTIONS+= rust-llvm PKG_SUGGESTED_OPTIONS+= rust-cargo-static .endif +# (NetBSD)/sparc64 systems fail to build libunwind 13.0.1, +# and libunwind is depended on here unless rust-llvm is turned +# on. The latter succeeds, though. So default to using +# rust-llvm on NetBSD/sparc64. +# Ref. PR#56791 +.if !empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) +PKG_SUGGESTED_OPTIONS+= rust-llvm +.endif + .include "../../mk/bsd.options.mk" # |