From cce56fa19b29ae2368390bdf2d464e97d61b59f3 Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 1 Aug 2026 17:04:12 +0000 Subject: [PATCH] Pessimize compiler flags for screen-redraw.c to prevent tmux from dumping core upon startup on landisk. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7673eab2..a6d16a618 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.121 2026/07/14 17:17:17 nicm Exp $ +# $OpenBSD: Makefile,v 1.122 2026/08/01 17:04:12 miod Exp $ PROG= tmux SRCS= alerts.c \ @@ -153,4 +153,9 @@ CFLAGS += -I${.CURDIR} LDADD= -lutil -lcurses -levent -lm DPADD= ${LIBUTIL} ${LIBCURSES} ${LIBEVENT} ${LIBM} +.if "${MACHINE_ARCH}" == "sh" +screen-redraw.o: + ${CC} ${CFLAGS} -fno-stack-protector ${CPPFLAGS} -c ${.IMPSRC} +.endif + .include