git: 958e11e0ad9a - main - www/vigil: fix build on powerpc

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 17 Jan 2025 21:47:38 UTC
The branch main has been updated by pkubaj:

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

commit 958e11e0ad9adf479923c971bc2bbd8d8576af27
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2025-01-17 16:57:10 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2025-01-17 21:46:09 +0000

    www/vigil: 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/www/vigil/work/rustc6Mqxu5/libopenssl_sys-c63ab88b0f69bc0f.rlib
---
 www/vigil/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/vigil/Makefile b/www/vigil/Makefile
index 46e000a4e39e..07ac5cdcf412 100644
--- a/www/vigil/Makefile
+++ b/www/vigil/Makefile
@@ -328,4 +328,11 @@ 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
+
 .include <bsd.port.mk>