Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Mar 2013 18:46:40 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r248742 - head/share/mk
Message-ID:  <201303261846.r2QIkegP067618@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Mar 26 18:46:40 2013
New Revision: 248742
URL: http://svnweb.freebsd.org/changeset/base/248742

Log:
  Make sure to set OBJS consistently in the cases where SRCS is and isn't
  already defined. Setting it with "+=" makes it possible for other make
  scripts (e.g. bsd.dtrace.mk) to include additional object files in the
  linker arguments.
  
  Approved by:	emaste (co-mentor)

Modified:
  head/share/mk/bsd.prog.mk

Modified: head/share/mk/bsd.prog.mk
==============================================================================
--- head/share/mk/bsd.prog.mk	Tue Mar 26 18:45:16 2013	(r248741)
+++ head/share/mk/bsd.prog.mk	Tue Mar 26 18:46:40 2013	(r248742)
@@ -73,7 +73,7 @@ SRCS=	${PROG}.c
 # - the name of the object gets put into the executable symbol table instead of
 #   the name of a variable temporary object.
 # - it's useful to keep objects around for crunching.
-OBJS=	${PROG}.o
+OBJS+=	${PROG}.o
 
 .if target(beforelinking)
 beforelinking: ${OBJS}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303261846.r2QIkegP067618>