git: baedfc735ccc - main - shells/nushell: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 18:27:20 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=baedfc735ccc88f719573768727b48ce25095818
commit baedfc735ccc88f719573768727b48ce25095818
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-10-11 06:07:59 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-10-11 18:26:42 +0000
shells/nushell: fix build on powerpc
= note: ld: error: undefined symbol: __atomic_load_8
---
shells/nushell/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/shells/nushell/Makefile b/shells/nushell/Makefile
index be61596d5b7a..0eec6afc5680 100644
--- a/shells/nushell/Makefile
+++ b/shells/nushell/Makefile
@@ -607,6 +607,13 @@ DATAFRAME_DESC= Include the dataframe feature
DATAFRAME_VARS= CARGO_BUILD_ARGS+=--features=dataframe
DATAFRAME_BROKEN= see https://github.com/nushell/nushell/issues/7665
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+LIB_DEPENDS= libatomic.so:lang/gcc${GCC_DEFAULT}
+LDFLAGS= -L/usr/local/lib/gcc${GCC_DEFAULT} -latomic
+.endif
+
.include <bsd.port.pre.mk>
# avoid address space exhaustion in compiler