Date: Sat, 23 Nov 2002 16:47:22 +0100 (CET) From: Sascha Blank <sblank@tiscali.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: i386/45644: crt*.o files are installed multiple times during "make install" Message-ID: <20021123154722.9048A257@ally.privat.de>
next in thread | raw e-mail | index | archive | help
>Number: 45644
>Category: i386
>Synopsis: crt*.o files are installed multiple times during "make install"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 23 07:50:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Sascha Blank
>Release: FreeBSD 4.7-STABLE i386
>Organization:
none
>Environment:
System: FreeBSD ally.privat.de 4.7-STABLE FreeBSD 4.7-STABLE #0: Fri Nov 22 09:46:33 CET 2002 sblank@ally.privat.de:/disc2/obj/disc2/src/sys/ALLY i386
$ ident /usr/src/lib/csu/i386-elf/Makefile
$FreeBSD: src/lib/csu/i386-elf/Makefile,v 1.6.2.4 2002/08/07 16:31:48 ru Exp $
>Description:
a "make install" in the above directory installs the *.o file four times in a
row, though once would suffice. Look at this:
# make install
install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib
install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib
install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib
install -o root -g wheel -m 444 crt1.o crti.o crtn.o gcrt1.o /usr/lib
>How-To-Repeat:
See above.
>Fix:
The "problem" is caused by a .for loop in the Makefile that looks like it has
been overseen at some point in the past.
The following diff solves this problem:
*** /usr/src/lib/csu/i386-elf/Makefile.orig Wed Aug 7 18:31:48 2002
--- /usr/src/lib/csu/i386-elf/Makefile Sat Nov 23 16:42:05 2002
***************
*** 19,27 ****
${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.CURDIR}/crt1.c
realinstall:
- .for file in ${OBJS}
${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${OBJS} ${DESTDIR}${LIBDIR}
- .endfor
.include <bsd.lib.mk>
--- 19,25 ----
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021123154722.9048A257>
