summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2014-05-16 15:00:04 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2014-05-16 15:00:04 +0000
commitc65ae8f9440df5554199df4c3fbbe107edbd7cc7 (patch)
treef219abcc5e9af00d2a3da74e738a000f277763c6
parent0244ab1f26bcc9c4a4c02ff1ab5d01bf230d823f (diff)
downloadsrc-test2-c65ae8f9440df5554199df4c3fbbe107edbd7cc7.tar.gz
src-test2-c65ae8f9440df5554199df4c3fbbe107edbd7cc7.zip
Notes
-rw-r--r--share/mk/local.dirdeps.mk29
1 files changed, 25 insertions, 4 deletions
diff --git a/share/mk/local.dirdeps.mk b/share/mk/local.dirdeps.mk
index 15b3977666c5..c9c089a38961 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