summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2007-03-13 17:35:14 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2007-03-13 17:35:14 +0000
commitb497d68cd34dd59a1766a1353c9ef896585a56ca (patch)
tree22e5865eee50f7921014f69a66bbd6d44af6ad35 /usr.bin
parenta8a50b52c2eff6d334e632fdbac25b5e1c391b17 (diff)
Work around gcc optimization bug on sh (landisk). From otto@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sort/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/sort/Makefile b/usr.bin/sort/Makefile
index c4978fdb619..756a1e7479e 100644
--- a/usr.bin/sort/Makefile
+++ b/usr.bin/sort/Makefile
@@ -1,6 +1,11 @@
-# $OpenBSD: Makefile,v 1.2 1997/09/21 11:50:57 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 2007/03/13 17:35:13 millert Exp $
PROG= sort
SRCS= append.c fields.c files.c fsort.c init.c msort.c sort.c tmp.c
+# Work around gcc optimization bug on sh
+.if (${MACHINE_ARCH} == sh)
+COPTS+= -O1
+.endif
+
.include <bsd.prog.mk>