From 7f26922fd9b0f436c162ebcdf01a066c1e3738ed Mon Sep 17 00:00:00 2001 From: Han Gao Date: Sat, 28 May 2022 22:14:16 +0800 Subject: games-misc/bsd-games: fix atomic in riscv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://bugs.gentoo.org/847904 Signed-off-by: Han Gao Signed-off-by: Jakov Smolić --- games-misc/bsd-games/bsd-games-3.1-r2.ebuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'games-misc/bsd-games') diff --git a/games-misc/bsd-games/bsd-games-3.1-r2.ebuild b/games-misc/bsd-games/bsd-games-3.1-r2.ebuild index 748268ebe63e..bae51ec41a4f 100644 --- a/games-misc/bsd-games/bsd-games-3.1-r2.ebuild +++ b/games-misc/bsd-games/bsd-games-3.1-r2.ebuild @@ -67,6 +67,9 @@ src_prepare() { echo bsd_games_cfg_usrlibdir=\"$(get_libdir)\" >> ./config.params || die echo bsd_games_cfg_build_dirs=\"${GAMES_TO_BUILD}\" >> ./config.params || die echo bsd_games_cfg_docdir=\"/usr/share/doc/${PF}\" >> ./config.params || die + if use riscv; then + sed -i 's/${CC} ${ldflags} -o $@ $^/${CC} ${ldflags} -o $@ $^ -latomic/' ./*/Module.mk || die + fi } src_configure() { -- cgit v1.2.3-65-gdbad