Apply a large hammer to reduce compiler optimization level on mips64 due to

clang 19 segfaulting otherwise. This can surely be improved upon, but the
immediate goal is to unbreak builds.
This commit is contained in:
miod
2025-06-30 14:10:09 +00:00
parent 571b39cbcc
commit 8e9c96fd9b
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
# $OpenBSD: Makefile.bsd-wrapper,v 1.2 2006/11/27 19:27:25 matthieu Exp $
# $OpenBSD: Makefile.bsd-wrapper,v 1.3 2025/06/30 14:10:09 miod Exp $
.if ${MACHINE_CPU} == "mips64"
CFLAGS+= -O0
CONFIGURE_ARGS+= --cache-file=/dev/null
.endif
.include <bsd.xorg.mk>

View File

@@ -1,8 +1,13 @@
# $OpenBSD: Makefile.bsd-wrapper,v 1.5 2025/03/09 15:14:49 matthieu Exp $
# $OpenBSD: Makefile.bsd-wrapper,v 1.6 2025/06/30 14:10:09 miod Exp $
.include <bsd.xconf.mk>
SHARED_LIBS= Xfont2 3.0
CONFIGURE_ARGS+= --disable-fc --with-xmlto=no --disable-devel-docs
.if ${MACHINE_CPU} == "mips64"
CFLAGS+= -O1
CONFIGURE_ARGS+= --cache-file=/dev/null
.endif
.include <bsd.xorg.mk>