Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2023 18:27:20 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: baedfc735ccc - main - shells/nushell: fix build on powerpc
Message-ID:  <202310111827.39BIRKvU091552@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202310111827.39BIRKvU091552>