Date: Wed, 14 Aug 2024 23:14:15 +0200 (CEST) From: Gerald Pfeifer <gerald@pfeifer.com> To: Piotr Kubaj <pkubaj@FreeBSD.org> Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: ab52d5af3b6f - main - dns/doh-proxy: fix build on powerpc Message-ID: <580464cf-aaeb-d949-bddc-227bcaceb7d1@pfeifer.com> In-Reply-To: <202408041201.474C1AsI012533@gitrepo.freebsd.org> References: <202408041201.474C1AsI012533@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Aug 2024, Piotr Kubaj wrote: > URL: https://cgit.FreeBSD.org/ports/commit/?id=ab52d5af3b6fa295d2b9fb45d89e1cd23b15330f : > dns/doh-proxy: 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/dns/doh-proxy/work/rustc4xSzx7/liblibmimalloc_sys-4a9c093f9f8149a2.rlib > >>> referenced by static.c > >>> 98cfcaec7182b1d8-static.o:(mi_arenas_try_purge) in archive /wrkdirs/usr/ports/dns/doh-proxy/work/rustc4xSzx7/liblibmimalloc_sys-4a9c093f9f8149a2.rlib > >>> referenced by static.c > >>> 98cfcaec7182b1d8-static.o:(mi_stat_update) in archive /wrkdirs/usr/ports/dns/doh-proxy/work/rustc4xSzx7/liblibmimalloc_sys-4a9c093f9f8149a2.rlib > >>> referenced 2 more times > +.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 This looks ... interesting: pulling in GCC for a single library which is more an interal aspect on one platform only? Isn't rather something broken or missing on powerpc and this is more of a crude hack leading to a Frankenbuild? Gerald
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?580464cf-aaeb-d949-bddc-227bcaceb7d1>