aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2022-11-18 06:42:23 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2022-11-18 06:56:41 +0000
commitb09414d5e3ea6826b26414c1502dcfd05dcae973 (patch)
tree4e026407dc3bf9f3375ae63b4deec8fb035bbde9
parent6255d2d5ce3b35e256ba6acb424c91d0c0779b5d (diff)
downloadports-b09414d5e3ea6826b26414c1502dcfd05dcae973.tar.gz
ports-b09414d5e3ea6826b26414c1502dcfd05dcae973.zip
lang/rust: allow using the default gcc on powerpc instead of forcing gcc12
-rw-r--r--lang/rust/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index e85d9dd828c3..19b7cc66e748 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -111,8 +111,8 @@ IGNORE= is only for FreeBSD
.if ${ARCH} == powerpc
# bfd to link rustc_driver; lld currently can't
BUILD_DEPENDS+= ld.bfd:devel/binutils
-LIB_DEPENDS+= libatomic.so:lang/gcc12
-MAKE_ENV+= RUSTFLAGS="-L/usr/local/lib/gcc12"
+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