summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2013-03-26 18:46:40 +0000
committermarkj <markj@FreeBSD.org>2013-03-26 18:46:40 +0000
commit13efc0b1c148f5aa7376868453728df22e08f719 (patch)
treec0e1139068aa0d92b88da16eb1f3d53cf61280ad /share/mk
parent5220c76da822d03f6c1e6e5848d8d6227d6f0ba3 (diff)
downloadFreeBSD-src-13efc0b1c148f5aa7376868453728df22e08f719.zip
FreeBSD-src-13efc0b1c148f5aa7376868453728df22e08f719.tar.gz
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)
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.prog.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index 801f804..5ceafcc 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -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}
OpenPOWER on IntegriCloud