summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2009-10-28 07:34:37 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2009-10-28 07:34:37 +0000
commitcb4906f55fa7a49aa28397caa1074aa262893119 (patch)
treea4d86ba78e73753a093cf59da2a4045ef623ea17 /distrib
parent7aecdfad7070aa77d2008ddfb94c4a63a6278935 (diff)
Strip the YP code from the binaries on the ramdisk by building with -UYP
the six files from libc that are directly pulled in. ok deraadt@
Diffstat (limited to 'distrib')
-rw-r--r--distrib/special/libstubs/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/distrib/special/libstubs/Makefile b/distrib/special/libstubs/Makefile
index d515708103a..2654de0a9a1 100644
--- a/distrib/special/libstubs/Makefile
+++ b/distrib/special/libstubs/Makefile
@@ -1,16 +1,19 @@
-# $OpenBSD: Makefile,v 1.2 2009/04/17 03:47:16 deraadt Exp $
+# $OpenBSD: Makefile,v 1.3 2009/10/28 07:34:36 guenther Exp $
.include <bsd.own.mk>
LIB= stubs
-SRCS= setlocale.c db.c sha2.c
+SRCS= db.c setlocale.c sha2.c getgrent.c getpwent.c \
+ ethers.c getaddrinfo.c gethostnamadr.c getnetnamadr.c
NOPIC= Yes
NOPROFILE=Yes
NOMAN=1
-CFLAGS+=-Os -D__DBINTERFACE_PRIVATE -DSHA256_ONLY
+CFLAGS+=-Os -D__DBINTERFACE_PRIVATE -DSHA256_ONLY -UYP -I${LIBCSRCDIR}/include
LIBCSRCDIR=${.CURDIR}/../../../lib/libc
.PATH: ${.CURDIR}/../../../lib/libc/hash
+.PATH: ${.CURDIR}/../../../lib/libc/gen
+.PATH: ${.CURDIR}/../../../lib/libc/net
.include <bsd.lib.mk>