summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-17 03:47:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-04-17 03:47:17 +0000
commit43db761fb49da8aa05d4062449dc298d387a9314 (patch)
treecc215c8262a321626ea4c46d35570b9e4891d923 /distrib
parent155ae49e5cefc7f22a0d316f90e098607c6b8f9e (diff)
Pull sha2.c from libc into libstubs, but compile it with -DSHA256_ONLY
so that it is a lot smaller.
Diffstat (limited to 'distrib')
-rw-r--r--distrib/special/libstubs/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/distrib/special/libstubs/Makefile b/distrib/special/libstubs/Makefile
index 11e051f8116..d515708103a 100644
--- a/distrib/special/libstubs/Makefile
+++ b/distrib/special/libstubs/Makefile
@@ -1,14 +1,16 @@
-# $OpenBSD: Makefile,v 1.1 2005/08/03 22:33:58 espie Exp $
+# $OpenBSD: Makefile,v 1.2 2009/04/17 03:47:16 deraadt Exp $
.include <bsd.own.mk>
LIB= stubs
-SRCS= setlocale.c db.c
+SRCS= setlocale.c db.c sha2.c
NOPIC= Yes
NOPROFILE=Yes
NOMAN=1
-CFLAGS+=-Os -D__DBINTERFACE_PRIVATE
+CFLAGS+=-Os -D__DBINTERFACE_PRIVATE -DSHA256_ONLY
LIBCSRCDIR=${.CURDIR}/../../../lib/libc
+.PATH: ${.CURDIR}/../../../lib/libc/hash
+
.include <bsd.lib.mk>