NetBSD Problem Report #8487
Received: (qmail 15590 invoked from network); 24 Sep 1999 13:18:54 -0000
Message-Id: <199909241318.PAA10684@cequrux.com>
Date: Fri, 24 Sep 1999 15:18:00 +0200 (SAST)
From: apb@cequrux.com
To: gnats-bugs@gnats.netbsd.org
Subject: bsd.lib.mk sets OBJS+=${SRCS:foo} twice
X-Send-Pr-Version: 3.95
>Number: 8487
>Category: misc
>Synopsis: bsd.lib.mk sets OBJS+=${SRCS:foo} twice
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: misc-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 24 06:20:01 +0000 1999
>Closed-Date: Mon Jan 17 18:37:35 +0000 2000
>Last-Modified: Mon Jan 17 18:38:25 +0000 2000
>Originator: Alan Barrett
>Release: NetBSD-current 1999-09-23
>Organization:
Not much
>Environment:
NetBSD-1.4K/i386
>Description:
The line
OBJS+=${SRCS:N*.h:N*.sh:R:S/$/.o/g}
appears twice (modulo whitespace)
in the file src/share/bsd.mk.conf (revision 1.159).
This causes problems building in the src/distrib/utils/libhack
directory.
>How-To-Repeat:
Get a source tree from NetBSD-current date 1999-09-23.
cd src/distrib/utils/libhack
make obj && make depend && make
Notice that it tries to include each .o file twice when
making libhack.o.
>Fix:
--- share/mk/bsd.lib.mk 1.159
+++ share/mk/bsd.lib.mk Fri Sep 24 15:16:36 1999
@@ -271,7 +271,6 @@
CLEANFILES+= ${SRCS:M*.y:.y=.h}
.endif
-OBJS+= ${SRCS:N*.h:N*.sh:R:S/$/.o/g}
lib${LIB}.a:: ${OBJS} __archivebuild
@echo building standard ${LIB} library
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: abs
State-Changed-When: Mon Jan 17 10:37:35 PST 2000
State-Changed-Why:
Removed duplicated assignment
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.