Subject: lib/9503: bsd.lib.mk broken
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@augustsson.net>
List: netbsd-bugs
Date: 02/28/2000 15:30:42
>Number: 9503
>Category: lib
>Synopsis: bsd.lib.mk broken
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: lib-bug-people (Library Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 28 15:30:00 2000
>Last-Modified:
>Originator: Lennart Augustsson
>Organization:
Department of Computing Science, Chalmers University
>Release: NetBSD-current 2000-02-27
>Environment:
System: NetBSD opus 1.4T NetBSD 1.4T (OPUS) #42: Sun Feb 27 21:55:42 CET 2000 augustss@opus:/extra/NetBSD/src/sys/arch/i386/compile/OPUS i386
>Description:
Doing `make' for a lib touches the library files even when
it's not necessary. This results in lots of unnecessary
linking when doing `make UPDATE= build'.
>How-To-Repeat:
cd src/lib/libutil
make
make
Observe how the second make touches the generated files:
hobbes# make
building standard util library
ranlib libutil.a
building profiled util library
ranlib libutil_p.a
building shared object util library
ranlib libutil_pic.a
building shared util library (version 5.2)
ld -x -shared -soname libutil.so.5 -o libutil.so.5.2 /usr/lib/crtbeginS.o --whole-archive libutil_pic.a --no-whole-archive /usr/lib/crtendS.o
rm -f libutil.so.5
ln -s libutil.so.5.2 libutil.so.5
rm -f libutil.so
ln -s libutil.so.5.2 libutil.so
hobbes# make
building standard util library
ranlib libutil.a
building profiled util library
ranlib libutil_p.a
building shared object util library
ranlib libutil_pic.a
building shared util library (version 5.2)
ld -x -shared -soname libutil.so.5 -o libutil.so.5.2 /usr/lib/crtbeginS.o --whole-archive libutil_pic.a --no-whole-archive /usr/lib/crtendS.o
rm -f libutil.so.5
ln -s libutil.so.5.2 libutil.so.5
rm -f libutil.so
ln -s libutil.so.5.2 libutil.so
hobbes#
>Fix:
Dunno.
>Audit-Trail:
>Unformatted: