Date: Fri, 08 Aug 2003 11:25:49 +1200 From: Andrew Turner <zombie@i4free.co.nz> To: Nate Lawson <nate@root.org> Cc: current@freebsd.org Subject: Re: Warning with loader Makefile? Message-ID: <3F32DFFD.4060402@i4free.co.nz> In-Reply-To: <20030807074557.S75796@root.org> References: <20030807074557.S75796@root.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------020603080107050407080003 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Nate Lawson wrote: > I get this: > ===> i386/cdboot > ===> i386/kgzldr > ===> i386/libi386 > ===> i386/loader > "/usr/share/mk/bsd.prog.mk", line 38: warning: duplicate script for target "loader" ignored > cc -nostdlib -static -Ttext 0x0 -o loader.sym > /home/obj/home/src/sys/boot/i386/loader/../btx/lib/crt0.o main.o conf.o > bcache.o boot.o commands.o console.o devopen.o interp.o interp_backslash.o > interp_parse.o ls.o misc.o module.o panic.o load_elf32.o load_elf64.o > isapnp.o pnp.o interp_forth.o vers.o > > Why is there a duplicate script? I found this patch worked by removing the secound ${PROG} target if there was already one there. Andrew --------------020603080107050407080003 Content-Type: text/plain; name="bsd.prog.mk.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="bsd.prog.mk.diff" --- /usr/src/share/mk/bsd.prog.mk Mon Jun 30 06:16:26 2003 +++ /usr/share/mk/bsd.prog.mk Mon Aug 4 17:54:22 2003 @@ -31,11 +31,13 @@ OBJS+= ${SRCS:N*.h:R:S/$/.o/g} +.if !target(${PROG}) ${PROG}: ${OBJS} .if defined(PROG_CXX) ${CXX} ${CXXFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD} .else ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD} +.endif .endif .else !defined(SRCS) --------------020603080107050407080003--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F32DFFD.4060402>