Index | Thread | Search

From:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Subject:
sparc64 pecl-redis fix
To:
ports@openbsd.org
Date:
Tue, 25 Nov 2025 17:08:44 +0100

Download raw body.

Thread
pecl-redis fails to build on sparc64 because it fails to detect the
endianess of the system. Our base-gcc does not include the needed
__BYTE_ORDER__ defines.  Switching to ports-gcc makes it work.

-- 
:wq Claudio

Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/pecl-redis/Makefile,v
diff -u -p -r1.41 Makefile
--- Makefile	8 Nov 2025 13:50:27 -0000	1.41
+++ Makefile	25 Nov 2025 10:02:32 -0000
@@ -7,6 +7,10 @@ CATEGORIES=	databases
 # PHP
 PERMIT_PACKAGE=	Yes
 
+# needs __BYTE_ORDER__
+COMPILER=	base-clang ports-gcc
+COMPILER_LANGS=	c
+
 WANTLIB=	c
 
 MODULES=	lang/php/pecl