summaryrefslogtreecommitdiffstats
path: root/sbin/gbde/Makefile
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-12-18 22:11:54 +0000
committerphk <phk@FreeBSD.org>2002-12-18 22:11:54 +0000
commit790740dde56a2f5e62e3aa9f1c92ee9f984d67ec (patch)
treed0aa5e275286cd1f865f71c45bcd5a3800c77614 /sbin/gbde/Makefile
parente0fc35ab9aa517617491628d564a722738f28920 (diff)
downloadFreeBSD-src-790740dde56a2f5e62e3aa9f1c92ee9f984d67ec.zip
FreeBSD-src-790740dde56a2f5e62e3aa9f1c92ee9f984d67ec.tar.gz
Solve another bug in the mapping code: correctly skip lock sectors.
Make sure sector zero is protected if it contains metadata. Lower WARNS for gbde to 3 on non-i386 archs. rijndael-fst is evil but appearntly does the right thing and passes the test-vectors. MFC Candidate.
Diffstat (limited to 'sbin/gbde/Makefile')
-rw-r--r--sbin/gbde/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbin/gbde/Makefile b/sbin/gbde/Makefile
index 58a992e..368edd9 100644
--- a/sbin/gbde/Makefile
+++ b/sbin/gbde/Makefile
@@ -8,7 +8,13 @@ SRCS+= rijndael-api-fst.c
SRCS+= sha2.c
SRCS+= g_bde_lock.c
+# rijndael-fst.c does evil casting things which results in warnings on
+# 64 bit machines, the test-vectors check out however, so it works right.
+.if ${MACHINE_ARCH} == "i386"
WARNS?= 5
+.else
+WARNS?= 3
+.endif
CFLAGS+= -I${.CURDIR}/../../sys
.PATH: ${.CURDIR}/../../sys/geom \
OpenPOWER on IntegriCloud