From 4ad8deec83c411decca28d0c860ac8d558692816 Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 20 Sep 2021 20:23:44 +0000 Subject: [PATCH] jmc was a bit too eager and deleted the -DSUN_CYLCHECK -DSUN_AAT0 compile options required for sparc64 (partition alignment, in particular) noticed by bluhm during testing --- sbin/disklabel/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbin/disklabel/Makefile b/sbin/disklabel/Makefile index 15b2102ab2c..78a3fe36c90 100644 --- a/sbin/disklabel/Makefile +++ b/sbin/disklabel/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.69 2021/06/24 21:11:40 jmc Exp $ +# $OpenBSD: Makefile,v 1.70 2021/09/20 20:23:44 deraadt Exp $ PROG= disklabel SRCS= disklabel.c dkcksum.c editor.c manual.c @@ -25,4 +25,8 @@ manual.c: disklabel.cat8 echo '};'; echo 'const int manpage_sz = sizeof(manpage);') > manual.c .endif +.if ${MACHINE} == "sparc64" +CFLAGS+= -DSUN_CYLCHECK -DSUN_AAT0 +.endif + .include -- 2.20.1