mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-16 06:52:27 +00:00
Implement the dependency condition more safely.
Nested : are not handled well without "". Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
2d9796bd24
commit
d7296a8fae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297996
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue