diff options
author | sjg <sjg@FreeBSD.org> | 2014-05-16 15:00:04 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2014-05-16 15:00:04 +0000 |
commit | 4dc88973c542607c21ab8efa56d364f4bd209ad4 (patch) | |
tree | f219abcc5e9af00d2a3da74e738a000f277763c6 /share | |
parent | ab341e179e2c690802ddd543d3ea98bff537be2d (diff) | |
download | FreeBSD-src-4dc88973c542607c21ab8efa56d364f4bd209ad4.zip FreeBSD-src-4dc88973c542607c21ab8efa56d364f4bd209ad4.tar.gz |
There are a few libs we need to build for host.
Handle more optional dependencies.
Diffstat (limited to 'share')
-rw-r--r-- | share/mk/local.dirdeps.mk | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/share/mk/local.dirdeps.mk b/share/mk/local.dirdeps.mk index 15b3977..c9c089a 100644 --- a/share/mk/local.dirdeps.mk +++ b/share/mk/local.dirdeps.mk @@ -25,7 +25,11 @@ M_dep_qual_fixes += C;($m),[^/.,]*$$;\1; #.info M_dep_qual_fixes=${M_dep_qual_fixes} # we want to supress these dependencies for host tools # but some libs are sadly needed. -_need_host_libs= lib/libdwarf +_need_host_libs= \ + lib/libc++ \ + lib/libcxxrt \ + lib/libdwarf \ + N_host_libs:= ${cd ${SRCTOP} && echo lib/lib*:L:sh:${_need_host_libs:${M_ListToSkip}}:${M_ListToSkip}} DIRDEPS_FILTER.host = \ ${N_host_libs} \ @@ -36,17 +40,30 @@ DIRDEPS_FILTER.host = \ Ngnu/lib/lib[a-r]* \ +DIRDEPS_FILTER+= \ + ${DIRDEPS_FILTER.xtras:U} +.endif + +# reset this each time +DIRDEPS_FILTER.xtras= +.if ${DEP_MACHINE:Npkgs*} != "" +DIRDEPS_FILTER.xtras+= Nusr.bin/clang/clang.host .endif .if ${DEP_MACHINE} != "host" # this is how we can handle optional dependencies -.if ${MK_SSP:Uno} != "no" && ${DEP_RELDIR:U${RELDIR}} == "lib/libc" +.if ${DEP_RELDIR} == "lib/libc" +DIRDEPS += lib/libc_nonshared +.if ${MK_SSP:Uno} != "no" DIRDEPS += gnu/lib/libssp/libssp_nonshared .endif +.else +DIRDEPS_FILTER.xtras+= Nlib/libc_nonshared +.endif # some optional things -.if ${MK_CTF} == "yes" && ${DEP_RELDIR:U${RELDIR}:Mcddl/usr.bin/ctf*} == "" +.if ${MK_CTF} == "yes" && ${DEP_RELDIR:Mcddl/usr.bin/ctf*} == "" DIRDEPS += \ cddl/usr.bin/ctfconvert.host \ cddl/usr.bin/ctfmerge.host @@ -54,8 +71,12 @@ DIRDEPS += \ .endif +.if ${MK_CLANG} == "yes" && ${DEP_RELDIR:Nlib/clang/lib*:Nlib/libc*} == "" +DIRDEPS+= lib/clang/include +.endif + # we need pkgs/pseudo/stage to prep the stage tree -.if ${DEP_RELDIR:U${RELDIR}} != "pkgs/pseudo/stage" +.if ${DEP_RELDIR} != "pkgs/pseudo/stage" DIRDEPS += pkgs/pseudo/stage .endif |