Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 2021 08:56:43 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 21708d5827ef - main - games/NBlood: fix build on powerpc
Message-ID:  <202107050856.1658uhCr003139@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=21708d5827ef1979b0eb03f77afa20afbe2eafec

commit 21708d5827ef1979b0eb03f77afa20afbe2eafec
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-07-05 08:42:21 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-07-05 08:42:21 +0000

    games/NBlood: fix build on powerpc
    
    <artificial>:(.text+0x9cc): undefined reference to `__atomic_load_8'
    /usr/local/bin/ld: <artificial>:(.text+0xa58): undefined reference to `__atomic_compare_exchange_8'
    collect2: error: ld returned 1 exit status
---
 games/NBlood/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/games/NBlood/Makefile b/games/NBlood/Makefile
index 97512d64e734..3b63d30b6fcf 100644
--- a/games/NBlood/Makefile
+++ b/games/NBlood/Makefile
@@ -20,6 +20,8 @@ LIB_DEPENDS=	libvpx.so:multimedia/libvpx \
 		libFLAC.so:audio/flac \
 		libvorbis.so:audio/libvorbis
 
+LDFLAGS_powerpc=-latomic
+
 USES=		compiler:gcc-c++11-lib gl gmake pkgconfig sdl
 USE_GITHUB=	yes
 GH_ACCOUNT=	nukeykt



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107050856.1658uhCr003139>