On Thu, Nov 03, 2022 at 09:32:10PM +1000, Jonathan Matthew wrote:
> On Thu, Nov 03, 2022 at 06:00:00AM -0600, [email protected] 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?
This fixes the build on sparc64 for me. Thank you.
ok kmos
--Kurt
>
> 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 \
>