git: 470078b9dc38 - main - sysutils/fselect: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 18:27:22 UTC
The branch main has been updated by pkubaj:
URL: https://cgit.FreeBSD.org/ports/commit/?id=470078b9dc383688895bdf5fa3142ff80836e8d9
commit 470078b9dc383688895bdf5fa3142ff80836e8d9
Author: Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-10-11 12:13:05 +0000
Commit: Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-10-11 18:26:45 +0000
sysutils/fselect: fix build on powerpc
= note: ld: error: undefined symbol: __atomic_load_8
---
sysutils/fselect/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/sysutils/fselect/Makefile b/sysutils/fselect/Makefile
index 3cc7972a93e8..075e0ab8b508 100644
--- a/sysutils/fselect/Makefile
+++ b/sysutils/fselect/Makefile
@@ -29,6 +29,13 @@ OPTIONS_DEFAULT= USERS
USERS_DESC= Query with 'user' and 'group' fields
USERS_VARS= CARGO_FEATURES+=users
+.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}
${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1