diff options
-rw-r--r-- | share/mk/local.dirdeps.mk | 22 | ||||
-rw-r--r-- | share/mk/local.sys.mk | 4 |
2 files changed, 16 insertions, 10 deletions
diff --git a/share/mk/local.dirdeps.mk b/share/mk/local.dirdeps.mk index 7feb63b..dc7fd33 100644 --- a/share/mk/local.dirdeps.mk +++ b/share/mk/local.dirdeps.mk @@ -1,13 +1,3 @@ -.if !target(_DIRDEP_USE) -# first time read -.if ${MACHINE} == "host" -DIRDEPS_FILTER+= \ - Ninclude* \ - Nlib/* \ - Ngnu/lib/* \ - -.endif -.endif # this is how we can handle optional dependencies .if ${MK_SSP:Uno} != "no" && defined(PROG) @@ -18,3 +8,15 @@ DIRDEPS += gnu/lib/libssp/libssp_nonshared .if ${DEP_RELDIR:U${RELDIR}} != "pkgs/pseudo/stage" DIRDEPS += pkgs/pseudo/stage .endif + +# we want to supress these dependencies for host tools +DEP_DIRDEPS_FILTER.host = \ + Ninclude* \ + Nlib/* \ + Ngnu/lib/* \ + + +.if !empty(DIRDEPS) && !empty(DEP_DIRDEPS_FILTER.${DEP_MACHINE}) +DIRDEPS := ${DIRDEPS:${DEP_DIRDEPS_FILTER.${DEP_MACHINE}:ts:}} +.endif + diff --git a/share/mk/local.sys.mk b/share/mk/local.sys.mk index af6e72c..b4be48f 100644 --- a/share/mk/local.sys.mk +++ b/share/mk/local.sys.mk @@ -83,6 +83,10 @@ HOST_OBJTOP ?= ${OBJROOT}${HOST_TARGET} .if ${OBJTOP} == ${HOST_OBJTOP} || ${REQUESTED_MACHINE:U${MACHINE}} == "host" MACHINE= host +.if ${TARGET_MACHINE:Uno} == ${HOST_TARGET} +# not what we want +TARGET_MACHINE= host +.endif .endif .if ${MACHINE} == "host" OBJTOP := ${HOST_OBJTOP} |