git: 21708d5827ef - main - games/NBlood: fix build on powerpc

Piotr Kubaj pkubaj at FreeBSD.org
Mon Jul 5 08:56:43 UTC 2021


The branch main has been updated by pkubaj:

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

commit 21708d5827ef1979b0eb03f77afa20afbe2eafec
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-07-05 08:42:21 +0000
Commit:     Piotr Kubaj <pkubaj at 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


More information about the dev-commits-ports-all mailing list