git: fb230792bc2d - main - textproc/jaq: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Mar 2023 19:04:49 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fb230792bc2d4df95184d5fb29b66e76474b2593
commit fb230792bc2d4df95184d5fb29b66e76474b2593
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-03-14 19:04:02 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-03-14 19:04:02 +0000
textproc/jaq: fix build on powerpc
ld: error: undefined symbol: __atomic_store_8
---
textproc/jaq/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/textproc/jaq/Makefile b/textproc/jaq/Makefile
index ebe0744ea5f4..42a7f072c7f8 100644
--- a/textproc/jaq/Makefile
+++ b/textproc/jaq/Makefile
@@ -78,6 +78,13 @@ CARGO_CRATES= ahash-0.7.6 \
PLIST_FILES= bin/${PORTNAME}
+.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
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}