On Mon, Feb 14, 2022 at 12:44:39AM +0100, Theo Buehler wrote: > Index: Makefile > =================================================================== > RCS file: /cvs/ports/net/libnice/Makefile,v > retrieving revision 1.40 > diff -u -p -r1.40 Makefile > --- Makefile 13 Feb 2022 18:13:31 -0000 1.40 > +++ Makefile 13 Feb 2022 22:38:37 -0000 > @@ -34,4 +34,11 @@ CONFIGURE_ARGS += -Dignored-network-inte > CONFIGURE_ARGS += -Dexamples=disabled \ > -Dgtk_doc=disabled > > +.include <bsd.port.arch.mk> > +# disable meson's default of using "-Wl,--as-needed" on ld.bfd arches; > +# build failures due to undefined references are often seen. > +.if !${PROPERTIES:Mlld} > +CONFIGURE_ARGS += -Db_asneeded=false > +.endif > + > .include <bsd.port.mk> >
You can simply do the check after the bsd.port.mk include and thus save the manual bsd.port.arch.mk include. Your choice, just mentioning it since I just saw this way again in another port.