git: 553504a120f4 - main - devel/cargo-about: fix build on powerpc
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Jan 2025 21:43:41 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=553504a120f4c937913dc2ad1f9b136245622f3a commit 553504a120f4c937913dc2ad1f9b136245622f3a Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2025-01-11 19:03:20 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2025-01-12 21:37:29 +0000 devel/cargo-about: fix build on powerpc = note: ld: error: undefined symbol: __atomic_load_8 >>> referenced by static.c >>> 98cfcaec7182b1d8-static.o:(mi_arena_schedule_purge) in archive /wrkdirs/usr/ports/devel/cargo-about/work/rustchdbInB/liblibmimalloc_sys-807f19a08a042004.rlib >>> referenced by static.c >>> 98cfcaec7182b1d8-static.o:(mi_arenas_try_purge) in archive /wrkdirs/usr/ports/devel/cargo-about/work/rustchdbInB/liblibmimalloc_sys-807f19a08a042004.rlib >>> referenced by static.c >>> 98cfcaec7182b1d8-static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/devel/cargo-about/work/rustchdbInB/liblibmimalloc_sys-807f19a08a042004.rlib >>> referenced 2 more times --- devel/cargo-about/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/devel/cargo-about/Makefile b/devel/cargo-about/Makefile index 3755f301ffca..4835d477ea96 100644 --- a/devel/cargo-about/Makefile +++ b/devel/cargo-about/Makefile @@ -290,4 +290,11 @@ CARGO_CRATES= addr2line-0.24.2 \ 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>