Index | Thread | Search

From:
Matthieu Herrb <matthieu@openbsd.org>
Subject:
fix graphics/jpeg on riscv64
To:
Stuart Henderson <stu@spacehopper.org>, Jeremie Courreges-Anglas <jca@wxcvbn.org>
Cc:
ports@openbsd.org
Date:
Tue, 14 Apr 2026 07:02:27 +0200

Download raw body.

Thread
jpeg 3.1.4.1 needs to disable SIMD support on riscv64, otherwise it
gets lots of simd related undefined symbols at link time.

With that it builds and pases tests :
100% tests passed, 0 tests failed out of 648

no revision bump since it didn't build on that architecure before.

ok ?

Index: Makefile
===================================================================
RCS file: /cvs/OpenBSD/ports/graphics/jpeg/Makefile,v
diff -u -p -u -r1.90 Makefile
--- Makefile	7 Apr 2026 08:01:03 -0000	1.90
+++ Makefile	13 Apr 2026 21:01:57 -0000
@@ -26,7 +26,7 @@ MODULES=	devel/cmake
 .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
 BUILD_DEPENDS=	devel/nasm
 .endif
-.if ${MACHINE_ARCH} == "sparc64"
+.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "riscv64"
 CONFIGURE_ARGS+= -DWITH_SIMD=OFF
 .endif
 

-- 
Matthieu Herrb