mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
988a78bc4c
Announce: https://blog.rust-lang.org/2026/05/28/Rust-1.96.0/ Release notes: https://doc.rust-lang.org/stable/releases.html#version-1960-2026-05-28 ok landry@
30 lines
739 B
Makefile
30 lines
739 B
Makefile
# increment after rust compiler update to trigger updates of
|
|
# all compiled rust packages (see arch-defines.mk)
|
|
_SYSTEM_VERSION-rust = 23
|
|
|
|
CATEGORIES += lang/rust
|
|
|
|
# WANTLIB for Rust compiled code
|
|
# it should be kept in sync with lang/rust code
|
|
# - c/pthread : all syscalls
|
|
# - c++abi / libgcc.a : unwind
|
|
MODRUST_WANTLIB += c pthread
|
|
|
|
.if "${MACHINE_ARCH}" != "sparc64"
|
|
MODRUST_WANTLIB += c++abi
|
|
.else
|
|
# libgcc.a is static
|
|
MODRUST_WANTLIB +=
|
|
.endif
|
|
|
|
CHECK_LIB_DEPENDS_ARGS += -S MODRUST_WANTLIB="${MODRUST_WANTLIB}"
|
|
|
|
MODRUST_BUILDDEP ?= Yes
|
|
.if ${MODRUST_BUILDDEP:L} == "yes"
|
|
BUILD_DEPENDS += lang/rust
|
|
.endif
|
|
|
|
# Location of rustc/rustdoc binaries
|
|
MODRUST_RUSTC_BIN = ${LOCALBASE}/bin/rustc
|
|
MODRUST_RUSTDOC_BIN = ${LOCALBASE}/bin/rustdoc
|