summaryrefslogtreecommitdiff
path: root/share/mk/bsd.dep.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-04-14 21:04:49 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-04-14 21:04:49 +0000
commitd7296a8faeef2f4a69307412f620504604c76392 (patch)
treea6d6a025ab58a7dd3bef97b467bc80a1e4fbaf04 /share/mk/bsd.dep.mk
parent2d9796bd246fbfb7ef9bf4222f231ac4ebcfa8ee (diff)
downloadsrc-test2-d7296a8faeef2f4a69307412f620504604c76392.tar.gz
src-test2-d7296a8faeef2f4a69307412f620504604c76392.zip
Implement the dependency condition more safely.
Nested : are not handled well without "". Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=297996
Diffstat (limited to 'share/mk/bsd.dep.mk')
-rw-r--r--share/mk/bsd.dep.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 50ed33c2838d..d80cb9de117a 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -174,7 +174,7 @@ DEPEND_CFLAGS+= -MT${.TARGET}
.if defined(.PARSEDIR)
# Only add in DEPEND_CFLAGS for CFLAGS on files we expect from DEPENDOBJS
# as those are the only ones we will include.
-DEPEND_CFLAGS_CONDITION= !empty(DEPENDOBJS:M${.TARGET:${DEPEND_FILTER}})
+DEPEND_CFLAGS_CONDITION= "${DEPENDOBJS:M${.TARGET:${DEPEND_FILTER}}}" != ""
CFLAGS+= ${${DEPEND_CFLAGS_CONDITION}:?${DEPEND_CFLAGS}:}
.else
CFLAGS+= ${DEPEND_CFLAGS}