summaryrefslogtreecommitdiff
path: root/sbin/fdisk/Makefile
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-05-05 17:18:09 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-05-05 17:18:09 +0000
commit2da35e67c83126e0c1645a02526b57a0893f9e18 (patch)
tree02da2ee8f858dc14b98e504541bd96b5de71670e /sbin/fdisk/Makefile
parent34ad4f79e7a9ae170ba1a05cbe507e3574925a4d (diff)
Ugly workaround for an overoptimistic alignment expectation of dos_partition
fields, found the hard way on landisk, to allow the tree to build until a proper fix is devised. ok deraadt@
Diffstat (limited to 'sbin/fdisk/Makefile')
-rw-r--r--sbin/fdisk/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/fdisk/Makefile b/sbin/fdisk/Makefile
index 4f5d4666ca8..71d3e901f6b 100644
--- a/sbin/fdisk/Makefile
+++ b/sbin/fdisk/Makefile
@@ -1,5 +1,5 @@
#
-# $OpenBSD: Makefile,v 1.40 2014/04/13 15:29:21 schwarze Exp $
+# $OpenBSD: Makefile,v 1.41 2014/05/05 17:18:08 miod Exp $
#
# Copyright (c) 1997 Tobias Weingartner
# All rights reserved.
@@ -56,4 +56,9 @@ MAN= fdisk.8
CFLAGS += -DHAS_MBR
.endif
+# XXX gross
+.if ${MACHINE_ARCH} == "sh"
+CFLAGS += -fno-builtin-memcpy
+.endif
+
.include <bsd.prog.mk>