On Thu, Nov 03, 2022 at 06:00:00AM -0600, k...@openbsd.org wrote: > http://build-failures.rhaalovely.net/sparc64/2022-10-31/net/irssi.log
Now that this uses meson, it needs -Wl,--as-needed disabled to build on ld.bfd arches. I copied this bit from another port. ok? Index: Makefile =================================================================== RCS file: /cvs/ports/net/irssi/Makefile,v retrieving revision 1.99 diff -u -p -r1.99 Makefile --- Makefile 2 Nov 2022 01:18:42 -0000 1.99 +++ Makefile 3 Nov 2022 11:35:01 -0000 @@ -34,6 +34,13 @@ MODMESON_CONFIGURE_ARGS += -Ddisable-utf -Dwith-perl=yes \ -Dwith-proxy=yes +# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches; +# build failures due to undefined references are often seen. +.include <bsd.port.arch.mk> +.if !${PROPERTIES:Mlld} +MODMESON_CONFIGURE_ARGS += -Db_asneeded=false +.endif + RUN_DEPENDS-otr = net/irssi,-main LIB_DEPENDS-otr = devel/glib2>=2.28.0 \ security/libgcrypt>=1.2.0 \