From owner-freebsd-arch Thu Jan 9 2:56:50 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A51EC37B401 for ; Thu, 9 Jan 2003 02:56:48 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 337F743E4A for ; Thu, 9 Jan 2003 02:56:48 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 5117F5374; Thu, 9 Jan 2003 11:56:45 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: arch@freebsd.org Subject: small bsd.prog.mk change From: Dag-Erling Smorgrav Date: Thu, 09 Jan 2003 11:56:45 +0100 Message-ID: Lines: 11 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386--freebsd) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-=-= The attached patch prevents the following warning which occurs when building the loader: "/usr/share/mk/bsd.prog.mk", line 37: warning: duplicate script for target "loader" ignored DES -- Dag-Erling Smorgrav - des@ofug.org --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=loader.diff Index: bsd.prog.mk =================================================================== RCS file: /home/ncvs/src/share/mk/bsd.prog.mk,v retrieving revision 1.129 diff -u -r1.129 bsd.prog.mk --- bsd.prog.mk 17 Oct 2002 13:48:13 -0000 1.129 +++ bsd.prog.mk 9 Jan 2003 10:54:47 -0000 @@ -30,11 +30,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) --=-=-=-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message