Subject: bin/5445: make make's things unnecessarily
To: None <gnats-bugs@gnats.netbsd.org>
From: Simon Burge <simonb@telstra.com.au>
List: netbsd-bugs
Date: 05/12/1998 16:40:11
>Number:         5445
>Category:       bin
>Synopsis:       make make's things unnecessarily
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 11 23:50:01 1998
>Last-Modified:
>Originator:     Simon Burge
>Organization:
	IBM Global Services Australia
>Release:        NetBSD-1.3.1
>Environment:
System: NetBSD vlad 1.3.1 NetBSD 1.3.1 (MONA) #0: Thu Apr 2 10:40:59 EST 1998 simonb@vlad:/usr/src/sys/arch/pmax/compile/MONA pmax


>Description:
	Make will re-make libraries in the source tree unnecessarily.
	This type of behaviour is also observed when building some third
	party source (binutils-2.8.1 comes to mind).  With binutils,
	gmake does things "properly".

>How-To-Repeat:
	Type the following:

		% cd /usr/src/usr.sbin/ypserv/common
		% make
		% make
		% make

	and observe:

		vlad:~ 54> cd /usr/src/usr.sbin/ypserv/common
		vlad:usr.sbin/ypserv/common 55> make
		cc -O -fPIC -DPIC -DABICALLS -Werror -Wall -Wstrict-prototypes \
			-Wmissing-prototypes -Wpointer-arith \
			-I/usr/src/usr.sbin/ypserv/common/../common \
			-I/usr/src/usr.sbin/ypserv/common/../common -c \
			/usr/src/usr.sbin/ypserv/common/localhostname.c
			[ rest of compiles deleted ]
		building standard common library
		ranlib libcommon.a
		vlad:usr.sbin/ypserv/common 56> make
		building standard common library
		ranlib libcommon.a
		vlad:usr.sbin/ypserv/common 57> make
		building standard common library
		ranlib libcommon.a

>Fix:
	Not known.
>Audit-Trail:
>Unformatted: