sci-libs/gklib: fix no x86 arches compile

Closes: https://bugs.gentoo.org/905642
Signed-off-by: jinqiang zhang <peeweep@0x0.ee>
Closes: https://github.com/gentoo/gentoo/pull/30853
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
jinqiang zhang
2023-05-03 11:40:00 +02:00
committed by Andrew Ammerlaan
parent 4c26627135
commit 4d7cf0eeaf
@@ -20,3 +20,13 @@ PATCHES=(
"${FILESDIR}/${P}-multilib.patch"
"${FILESDIR}/${P}-respect-user-flags.patch"
)
src_configure() {
local mycmakeargs=()
if ! use amd64 && ! use x86; then # bug 905642
mycmakeargs+=(
-DNO_X86=ON
)
fi
cmake_src_configure
}