Mon Jan 4 10:12:42 2021 UTC ()
rust: Limit rust-cargo-static option to NetBSD.

Other OS bundle the necessary libraries with the bootstrap kits, and enabling
this option would mean having to carry additional patches for the bundled zlib
etc.


(jperkin)
diff -r1.8 -r1.9 pkgsrc/lang/rust/options.mk

cvs diff -r1.8 -r1.9 pkgsrc/lang/rust/options.mk (expand / switch to unified diff)

--- pkgsrc/lang/rust/options.mk 2021/01/01 20:44:48 1.8
+++ pkgsrc/lang/rust/options.mk 2021/01/04 10:12:42 1.9
@@ -1,31 +1,32 @@ @@ -1,31 +1,32 @@
1# $NetBSD: options.mk,v 1.8 2021/01/01 20:44:48 he Exp $ 1# $NetBSD: options.mk,v 1.9 2021/01/04 10:12:42 jperkin Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.rust 3PKG_OPTIONS_VAR= PKG_OPTIONS.rust
4PKG_SUPPORTED_OPTIONS= # empty 4PKG_SUPPORTED_OPTIONS+= rust-cargo-static
5 5
6.include "../../mk/bsd.fast.prefs.mk" 6.include "../../mk/bsd.fast.prefs.mk"
7 7
8# The bundled LLVM current has issues building on SunOS. 8# The bundled LLVM current has issues building on SunOS.
9.if ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin" 9.if ${OPSYS} != "SunOS" && ${OPSYS} != "Darwin"
10PKG_SUPPORTED_OPTIONS+= rust-llvm 10PKG_SUPPORTED_OPTIONS+= rust-llvm
11# There may be compatibility issues with base LLVM. 11# There may be compatibility issues with base LLVM.
12. if !empty(HAVE_LLVM) 12. if !empty(HAVE_LLVM)
13PKG_SUGGESTED_OPTIONS+= rust-llvm 13PKG_SUGGESTED_OPTIONS+= rust-llvm
14. endif 14. endif
15.endif 15.endif
16 16
17PKG_SUPPORTED_OPTIONS+= rust-cargo-static 17.if ${OPSYS} == "NetBSD"
18PKG_SUGGESTED_OPTIONS+= rust-cargo-static 18PKG_SUGGESTED_OPTIONS+= rust-cargo-static
 19.endif
19 20
20.include "../../mk/bsd.options.mk" 21.include "../../mk/bsd.options.mk"
21 22
22# 23#
23# Use the internal copy of LLVM. 24# Use the internal copy of LLVM.
24# This contains some extra optimizations. 25# This contains some extra optimizations.
25# 26#
26.if !empty(PKG_OPTIONS:Mrust-llvm) 27.if !empty(PKG_OPTIONS:Mrust-llvm)
27BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake 28BUILD_DEPENDS+= cmake-[0-9]*:../../devel/cmake
28.include "../../devel/cmake/buildlink3.mk" 29.include "../../devel/cmake/buildlink3.mk"
29.else 30.else
30.include "../../lang/llvm/buildlink3.mk" 31.include "../../lang/llvm/buildlink3.mk"
31CONFIGURE_ARGS+= --enable-llvm-link-shared 32CONFIGURE_ARGS+= --enable-llvm-link-shared