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}
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to