git: ac4a6deabab2 - main - devel/evcxr-jupyter: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sun, 11 Feb 2024 11:49:36 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ac4a6deabab2ced1623f9d031dc7201283533d76

commit ac4a6deabab2ced1623f9d031dc7201283533d76
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-02-08 00:56:03 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-02-11 11:48:39 +0000

    devel/evcxr-jupyter: fix build on powerpc
    
      = note: ld: error: undefined symbol: __atomic_load_8
---
 devel/evcxr-jupyter/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/devel/evcxr-jupyter/Makefile b/devel/evcxr-jupyter/Makefile
index 33120777c6f6..7c0251b04b26 100644
--- a/devel/evcxr-jupyter/Makefile
+++ b/devel/evcxr-jupyter/Makefile
@@ -303,6 +303,13 @@ CARGO_CRATES=	addr2line-0.21.0 \
 PLIST_FILES=	bin/${PORTNAME} \
 		bin/${PORTNAME}_jupyter
 
+.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
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/target/*-unknown-freebsd/release/evcxr ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_PROGRAM} ${WRKDIR}/target/*-unknown-freebsd/release/evcxr_jupyter ${STAGEDIR}${PREFIX}/bin