mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
WITH_META_MODE: Fix suffix transformation rules with guessed dependencies.
This is the same problem as r290629. With META_MODE we do not generate .depend files, so there is no proper dependency to lookup. Guessed dependencies must be used. If this proves to be a problem then we will have to generate and use .depend files even with META_MODE. Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
d0694f2738
commit
3b828e4492
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300343
@ -216,6 +216,12 @@ afterdepend: beforedepend
|
||||
(!defined(_meta_filemon) && !exists(${.OBJDIR}/${DEPENDFILE}.${__obj}))
|
||||
${__obj}: ${OBJS_DEPEND_GUESS}
|
||||
${__obj}: ${OBJS_DEPEND_GUESS.${__obj}}
|
||||
.elif defined(_meta_filemon)
|
||||
# For meta mode we still need to know which file to depend on to avoid
|
||||
# ambiguous suffix transformation rules from .PATH. Meta mode does not
|
||||
# use .depend files. We really only need source files, not headers.
|
||||
${__obj}: ${OBJS_DEPEND_GUESS:N*.h}
|
||||
${__obj}: ${OBJS_DEPEND_GUESS.${__obj}:N*.h}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
|
@ -247,6 +247,14 @@ beforebuild: kernel-depend
|
||||
${__obj}: ${OBJS_DEPEND_GUESS}
|
||||
.endif
|
||||
${__obj}: ${OBJS_DEPEND_GUESS.${__obj}}
|
||||
.elif defined(_meta_filemon)
|
||||
# For meta mode we still need to know which file to depend on to avoid
|
||||
# ambiguous suffix transformation rules from .PATH. Meta mode does not
|
||||
# use .depend files. We really only need source files, not headers.
|
||||
.if ${SYSTEM_OBJS:M${__obj}}
|
||||
${__obj}: ${OBJS_DEPEND_GUESS:N*.h}
|
||||
.endif
|
||||
${__obj}: ${OBJS_DEPEND_GUESS.${__obj}:N*.h}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user