Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2023 18:27:22 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: 470078b9dc38 - main - sysutils/fselect: fix build on powerpc
Message-ID:  <202310111827.39BIRMp6091643@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=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



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