summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Xuerui <xen0n@gentoo.org>2022-05-10 08:31:01 +0800
committerWANG Xuerui <xen0n@gentoo.org>2022-05-10 08:43:23 +0800
commitbc8b86bd8193de379f7acc368343174d9295f5ea (patch)
tree0f5602b7ab940e8bd7706fe8a29eff2f0d20754f /media-libs/libjpeg-turbo
parentdev-util/source-highlight: keyword 3.1.9-r1 for ~loong (diff)
downloadgentoo-bc8b86bd8193de379f7acc368343174d9295f5ea.tar.gz
gentoo-bc8b86bd8193de379f7acc368343174d9295f5ea.tar.bz2
gentoo-bc8b86bd8193de379f7acc368343174d9295f5ea.zip
media-libs/libjpeg-turbo: fix test suite on loong
By marking the correct floating-point behavior, as suggested by upstream; this could be done independently of upstreaming of said logic. Tests now pass on real hardware. See: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
Diffstat (limited to 'media-libs/libjpeg-turbo')
-rw-r--r--media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild
index 33dbbbc93b45..303151384efd 100644
--- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.1.3.ebuild
@@ -75,6 +75,15 @@ multilib_src_configure() {
)
fi
+ # We should tell the test suite which floating-point flavor we are
+ # expecting: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/597
+ # For now, mark loong as fp-contract.
+ if use loong; then
+ mycmakeargs+=(
+ -DFLOATTEST=fp-contract
+ )
+ fi
+
# mostly for Prefix, ensure that we use our yasm if installed and
# not pick up host-provided nasm
if has_version -b dev-lang/yasm && ! has_version -b dev-lang/nasm; then