diff options
author | Han Gao <rabenda.cn@gmail.com> | 2022-05-28 22:14:16 +0800 |
---|---|---|
committer | Jakov Smolić <jsmolic@gentoo.org> | 2022-05-28 17:05:54 +0200 |
commit | 7f26922fd9b0f436c162ebcdf01a066c1e3738ed (patch) | |
tree | c5b04b5aafd73c1815cc4b586f7345b4808740b3 /games-misc/bsd-games | |
parent | sys-kernel/gentoo-sources: drop 5.17.7 (diff) | |
download | gentoo-7f26922fd9b0f436c162ebcdf01a066c1e3738ed.tar.gz gentoo-7f26922fd9b0f436c162ebcdf01a066c1e3738ed.tar.bz2 gentoo-7f26922fd9b0f436c162ebcdf01a066c1e3738ed.zip |
games-misc/bsd-games: fix atomic in riscv
Bug: https://bugs.gentoo.org/847904
Signed-off-by: Han Gao <rabenda.cn@gmail.com>
Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
Diffstat (limited to 'games-misc/bsd-games')
-rw-r--r-- | games-misc/bsd-games/bsd-games-3.1-r2.ebuild | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |