git: b5d76553f14e - main - textproc/difftastic: fix build on powerpc
Date: Thu, 01 Dec 2022 23:00:14 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=b5d76553f14e1c261cee2a835fd6d7121dc6ee1a commit b5d76553f14e1c261cee2a835fd6d7121dc6ee1a Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2022-12-01 22:57:57 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2022-12-01 22:57:57 +0000 textproc/difftastic: fix build on powerpc = note: ld: error: undefined symbol: __atomic_fetch_add_8 >>> referenced by static.c >>> static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib >>> referenced by static.c >>> static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib >>> referenced by static.c >>> static.o:(mi_stats_merge_from) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib >>> referenced 75 more times ld: error: undefined symbol: __atomic_load_8 >>> referenced by static.c >>> static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib >>> referenced by static.c >>> static.o:(_mi_stats_print) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib >>> referenced by static.c >>> static.o:(_mi_stats_print) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib ld: error: undefined symbol: __atomic_compare_exchange_8 >>> referenced by static.c >>> static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/textproc/difftastic/work/rustc5gqLZw/liblibmimalloc_sys-3697f752fef9d30f.rlib cc: error: linker command failed with exit code 1 (use -v to see invocation) --- textproc/difftastic/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/textproc/difftastic/Makefile b/textproc/difftastic/Makefile index 4918e598d959..d53b8fcc120b 100644 --- a/textproc/difftastic/Makefile +++ b/textproc/difftastic/Makefile @@ -109,6 +109,13 @@ PORTDOCS= * OPTIONS_DEFINE= DOCS +.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/difft