games-action/blackvoxel: add -fno-strict-aliasing

Signed-off-by: Samuel Bauer <samuel.bauer@yahoo.fr>
This commit is contained in:
Samuel Bauer
2022-07-25 01:12:14 +02:00
parent cb65ef27f4
commit d56e5874da

View File

@@ -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)"