Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Aug 2024 12:01:18 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: 5f0cf896005d - main - www/feroxbuster: fix build on powerpc
Message-ID:  <202408041201.474C1IeR012870@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=5f0cf896005da05012943490165262c1018cf754

commit 5f0cf896005da05012943490165262c1018cf754
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-07-31 10:19:57 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-04 12:00:35 +0000

    www/feroxbuster: fix build on powerpc
    
              ld: error: undefined symbol: __atomic_is_lock_free
              >>> referenced by threads_pthread.c
              >>>               libcrypto-lib-threads_pthread.o:(CRYPTO_atomic_or) in archive /wrkdirs/usr/ports/www/feroxbuster/work/rustcqv4eu9/libopenssl_sys-000d228428b7ac21.rlib
              >>> referenced by threads_pthread.c
              >>>               libcrypto-lib-threads_pthread.o:(CRYPTO_atomic_load) in archive /wrkdirs/usr/ports/www/feroxbuster/work/rustcqv4eu9/libopenssl_sys-000d228428b7ac21.rlib
              cc: error: linker command failed with exit code 1 (use -v to see invocation)
---
 www/feroxbuster/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/www/feroxbuster/Makefile b/www/feroxbuster/Makefile
index 2627c5ee58c1..e74cb9747307 100644
--- a/www/feroxbuster/Makefile
+++ b/www/feroxbuster/Makefile
@@ -427,6 +427,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}
 



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