summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/rust/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index 819cab84eddf..f7728020d762 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -1,6 +1,6 @@
PORTNAME= rust
PORTVERSION?= 1.77.0
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= https://static.rust-lang.org/dist/:src \
https://dev-static.rust-lang.org/dist/:src \
@@ -34,6 +34,7 @@ CPE_VENDOR= rust-lang
MAKE_ENV= DESTDIR=${STAGEDIR} \
LIBGIT2_NO_PKG_CONFIG=1 \
+ RUST_BACKTRACE=1 \
OPENSSL_DIR="${OPENSSLBASE}"
TEST_ENV= ${MAKE_ENV} \
ALLOW_NONZERO_RLIMIT_CORE=1
@@ -101,13 +102,9 @@ IGNORE= is only for FreeBSD
.if ${ARCH} == powerpc
LIB_DEPENDS+= libatomic.so:lang/gcc${GCC_DEFAULT}
MAKE_ENV+= RUSTFLAGS="-L/usr/local/lib/gcc${GCC_DEFAULT}"
-.else
-MAKE_ENV+= RUST_BACKTRACE=1
-.endif
-
# rls doesn't build on rust nightly
# rls needs 64-bit atomics: it doesn't build on powerpc
-.if !defined(NIGHTLY_DATE) && ${ARCH} != powerpc
+.elif !defined(NIGHTLY_DATE)
_RUST_TOOLS+= rls
_COMPONENTS+= rls-${_PACKAGE_VERS}-${_RUST_TARGET}
.endif