summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-09-02 03:55:46 +0000
committerderaadt <deraadt@openbsd.org>2012-09-02 03:55:46 +0000
commitfa3543567bdffb56392847922bbbf7aff8d45394 (patch)
tree702eba33e9bbe6db1049dab72f0470ff5623bc86
parentenable PIE on alpha, and document the situation for other (diff)
downloadwireguard-openbsd-fa3543567bdffb56392847922bbbf7aff8d45394.tar.xz
wireguard-openbsd-fa3543567bdffb56392847922bbbf7aff8d45394.zip
Document (in this commit message, and an annotation in the Makefile)
that this sh-architecture gcc workaround is for the same bug that is found in sort/tmp.c
-rw-r--r--usr.bin/tic/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/tic/Makefile b/usr.bin/tic/Makefile
index ee7a3e60f3e..0675bcf05b3 100644
--- a/usr.bin/tic/Makefile
+++ b/usr.bin/tic/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.5 2011/06/23 22:46:12 schwarze Exp $
+# $OpenBSD: Makefile,v 1.6 2012/09/02 03:55:46 deraadt Exp $
PROG= tic
SRCS= dump_entry.c tic.c
@@ -10,8 +10,9 @@ CURSES= ${.CURDIR}/../../lib/libcurses
CFLAGS+= -I${CURSES} -I${.CURDIR} -I.
CLEANFILES+= termsort.c captoinfo.1
+# Work around gcc optimization bug on sh
.if (${MACHINE_ARCH} == sh)
-COPTS+= -O1
+COPTS+= -O0
.endif
beforedepend: termsort.c