summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-04-14 21:04:49 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-04-14 21:04:49 +0000
commitc027e2497fa58d9f68775e67f319f8d69b3d849d (patch)
treea6d6a025ab58a7dd3bef97b467bc80a1e4fbaf04 /sys/conf
parenta8b775f4b792dc1d1c33d5b736997099e2d62501 (diff)
downloadFreeBSD-src-c027e2497fa58d9f68775e67f319f8d69b3d849d.zip
FreeBSD-src-c027e2497fa58d9f68775e67f319f8d69b3d849d.tar.gz
Implement the dependency condition more safely.
Nested : are not handled well without "". Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kern.post.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/conf/kern.post.mk b/sys/conf/kern.post.mk
index d28e87b..3286c66 100644
--- a/sys/conf/kern.post.mk
+++ b/sys/conf/kern.post.mk
@@ -215,7 +215,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_CFLAGS_CONDITION= "${DEPENDOBJS:M${.TARGET}}" != ""
CFLAGS+= ${${DEPEND_CFLAGS_CONDITION}:?${DEPEND_CFLAGS}:}
.else
CFLAGS+= ${DEPEND_CFLAGS}
OpenPOWER on IntegriCloud