Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/libhack permanently disable opendir.o until it...



details:   https://anonhg.NetBSD.org/src/rev/6042fb595c6c
branches:  trunk
changeset: 521705:6042fb595c6c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Feb 03 22:39:52 2002 +0000

description:
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...

diffstat:

 distrib/utils/libhack/Makefile     |  5 +----
 distrib/utils/libhack/Makefile.inc |  6 +-----
 2 files changed, 2 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 820432ca33e9 -r 6042fb595c6c distrib/utils/libhack/Makefile
--- a/distrib/utils/libhack/Makefile    Sun Feb 03 22:34:49 2002 +0000
+++ b/distrib/utils/libhack/Makefile    Sun Feb 03 22:39:52 2002 +0000
@@ -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 @@
 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
diff -r 820432ca33e9 -r 6042fb595c6c distrib/utils/libhack/Makefile.inc
--- a/distrib/utils/libhack/Makefile.inc        Sun Feb 03 22:34:49 2002 +0000
+++ b/distrib/utils/libhack/Makefile.inc        Sun Feb 03 22:39:52 2002 +0000
@@ -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 @@
 strsignal.o: ${HACKSRC}/strsignal.c
 utmp.o: ${HACKSRC}/utmp.c
 yplib.o: ${HACKSRC}/yplib.c
-opendir.o: ${HACKSRC}/opendir.c



Home | Main Index | Thread Index | Old Index