permanently disable opendir.o until its link bugs (on ELF platforms

only?) are sorted out.  speculation (based on some analysis by simonb)
is that it's because fts calls _opendir2 directly, which forces both
the libhack and the libc versions of opendir.o to be linked in.
in any case, there's space saves to be had elsewhere...
This commit is contained in:
lukem 2002-02-03 22:39:52 +00:00
parent 807b630c0b
commit a23934fd2a
2 changed files with 2 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2001/12/12 00:05:10 tv Exp $
# $NetBSD: Makefile,v 1.14 2002/02/03 22:39:52 lukem Exp $
#
# Stubs to kill off some things from libc:
# This save space on a boot system.
@ -8,9 +8,6 @@ LIB= hack
SRCS= getcap.c getgrent.c gethost.c getnet.c getnetgr.c getpwent.c \
localeconv.c perror.c setlocale.c \
strerror.c strsignal.c utmp.c yplib.c
.ifndef NOLIBHACKOPENDIR
SRCS+= opendir.c
.endif
WARNS= 1
NOLINKLIB= # defined

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.12 2001/10/05 01:17:28 jmc Exp $
# $NetBSD: Makefile.inc,v 1.13 2002/02/03 22:39:52 lukem Exp $
# Include this fragment to build libhack.o
# It is .o and not .a to make sure these are the
# objects you get (and not the ones in libc.a)
@ -6,9 +6,6 @@
HACKOBJS= getcap.o getgrent.o gethost.o getnet.o getnetgr.o getpwent.o \
localeconv.o perror.o setlocale.o \
strerror.o strsignal.o utmp.o yplib.o
.ifndef NOLIBHACKOPENDIR
HACKOBJS+= opendir.o
.endif
libhack.o : $(HACKOBJS)
$(LD) -r -o $@ $(HACKOBJS)
@ -32,4 +29,3 @@ strerror.o: ${HACKSRC}/strerror.c
strsignal.o: ${HACKSRC}/strsignal.c
utmp.o: ${HACKSRC}/utmp.c
yplib.o: ${HACKSRC}/yplib.c
opendir.o: ${HACKSRC}/opendir.c