git: 8cf2c65a798a - main - misc/code2prompt: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jan 2025 21:47:36 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=8cf2c65a798ab738a6a170fc11c35e584eb8ea38 commit 8cf2c65a798ab738a6a170fc11c35e584eb8ea38 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-17 16:36:58 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-17 21:46:06 +0000 misc/code2prompt: fix build on powerpc = note: ld: error: undefined symbol: __atomic_fetch_add_8 >>> referenced by threads_pthread.c >>> libcrypto-lib-threads_pthread.o:(ossl_rcu_read_lock) in archive /wrkdirs/usr/ports/misc/code2prompt/work/rustckxgXWx/libopenssl_sys-d3eb5361e97e836b.rlib --- misc/code2prompt/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc/code2prompt/Makefile b/misc/code2prompt/Makefile index ad1af437314e..d73ada3c0bfc 100644 --- a/misc/code2prompt/Makefile +++ b/misc/code2prompt/Makefile @@ -263,6 +263,13 @@ OPENSSLLIB= /usr/lib 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}