On Sat, Jan 25, 2020 at 03:54:13PM +0100, Charlene Wendling wrote: > Hi! > > NBlood requires atomics on powerpc, as seen in the current powerpc bulk: > > > enet.cpp:(.text+0x2e20): undefined reference to `__atomic_load_8' > > enet.cpp:(.text+0x2e98): undefined reference to > > `__atomic_compare_exchange_8' > > It builds fine on macppc [0] once the usual atomic block is added. > > OK?
ok jsg@ > > Charlène. > > > [0] https://bin.charlenew.xyz/nblood.log > > > Index: Makefile > =================================================================== > RCS file: /cvs/ports/games/nblood/Makefile,v > retrieving revision 1.1.1.1 > diff -u -p -u -p -r1.1.1.1 Makefile > --- Makefile 1 Jan 2020 02:28:07 -0000 1.1.1.1 > +++ Makefile 25 Jan 2020 14:49:44 -0000 > @@ -44,6 +44,12 @@ MAKE_FILE = GNUmakefile > USE_GMAKE = Yes > NO_TEST = Yes > > +# Fix "undefined reference to `__atomic_load_8'" > +.if ${MACHINE_ARCH:Mpowerpc} || ${MACHINE_ARCH:Mhppa} > +WANTLIB += atomic > +MAKE_FLAGS += LDFLAGS="${LDFLAGS} -latomic" > +.endif > + > .include <bsd.port.arch.mk> > > .if !${PROPERTIES:Mlld} > >