summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@openbsd.org>2001-04-10 20:52:10 +0000
committernaddy <naddy@openbsd.org>2001-04-10 20:52:10 +0000
commit14d43eac345d8f471b8ae377ddb4f485144e8aab (patch)
treed832bad35bedd8bf59ba4214e1df376f150eec47
parentreceive filter programming (diff)
downloadwireguard-openbsd-14d43eac345d8f471b8ae377ddb4f485144e8aab.tar.xz
wireguard-openbsd-14d43eac345d8f471b8ae377ddb4f485144e8aab.zip
Disable optimization on sparc; ok deraadt@
If tape.c is compiled with -O or higher, dump runs on _some_ systems will _sometimes_ become stuck. All five dump processes (tty, master, slaves) will just sleep. This has been observed on some sun4c and sun4m systems.
-rw-r--r--sbin/dump/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/dump/Makefile b/sbin/dump/Makefile
index 61ea7bbd5aa..bb4980340f0 100644
--- a/sbin/dump/Makefile
+++ b/sbin/dump/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.9 1998/02/08 19:24:05 deraadt Exp $
+# $OpenBSD: Makefile,v 1.10 2001/04/10 20:52:10 naddy Exp $
# dump.h header file
# itime.c reads /etc/dumpdates
@@ -18,4 +18,8 @@ SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c
MAN= dump.8
MLINKS+=dump.8 rdump.8
+.if (${MACHINE_ARCH} == "sparc")
+CFLAGS+= -O0
+.endif
+
.include <bsd.prog.mk>