diff --git a/games-action/blackvoxel/blackvoxel-2.50.ebuild b/games-action/blackvoxel/blackvoxel-2.50.ebuild index 900d25e7c2..d6c70fed56 100644 --- a/games-action/blackvoxel/blackvoxel-2.50.ebuild +++ b/games-action/blackvoxel/blackvoxel-2.50.ebuild @@ -1,9 +1,9 @@ -# Copyright 2020-2021 Gentoo Authors +# Copyright 2020-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit desktop toolchain-funcs xdg +inherit desktop flag-o-matic toolchain-funcs xdg DESCRIPTION="Blackvoxel Video Game" HOMEPAGE="https://www.blackvoxel.com/" @@ -31,6 +31,12 @@ PATCHES=( "${FILESDIR}"/${P}-savedir.patch ) +src_prepare() { + default + append-cflags -fno-strict-aliasing + append-cxxflags -fno-strict-aliasing +} + src_compile() { export CXX="$(tc-getCXX)" export CC="$(tc-getCC)"