aboutsummaryrefslogtreecommitdiff
path: root/targets
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2017-10-31 00:03:36 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2017-10-31 00:03:36 +0000
commita160cbfa073e8499026063d2d3882b2117b4ced7 (patch)
treed1a440f7f8cca779c9f10fc58dfa96b777fef0e1 /targets
parent83f4f35130ad6b5975531669dbe77be4f7b3901f (diff)
downloadsrc-a160cbfa073e8499026063d2d3882b2117b4ced7.tar.gz
src-a160cbfa073e8499026063d2d3882b2117b4ced7.zip
DIRDEPS_BUILD: libgcc now depends on MK_LLVM_LIBUNWIND
The dependency on gnu/lib/libgcc or lib/libgcc* is determined at 'make dirdeps' time. Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/head/; revision=325181
Diffstat (limited to 'targets')
-rw-r--r--targets/pseudo/userland/gnu/Makefile.depend5
-rw-r--r--targets/pseudo/userland/lib/Makefile.depend6
2 files changed, 10 insertions, 1 deletions
diff --git a/targets/pseudo/userland/gnu/Makefile.depend b/targets/pseudo/userland/gnu/Makefile.depend
index 5929ca4612c1..00c280e9e42e 100644
--- a/targets/pseudo/userland/gnu/Makefile.depend
+++ b/targets/pseudo/userland/gnu/Makefile.depend
@@ -9,7 +9,6 @@
DIRDEPS = \
gnu/lib/csu \
gnu/lib/libdialog \
- gnu/lib/libgcc \
gnu/lib/libgcov \
gnu/lib/libgomp \
gnu/lib/libreadline/history/doc \
@@ -45,4 +44,8 @@ DIRDEPS = \
DIRDEPS+= gnu/usr.bin/dtc
.endif
+.if ${MK_LLVM_LIBUNWIND} == "no"
+DIRDEPS+= gnu/lib/libgcc
+.endif
+
.include <dirdeps.mk>
diff --git a/targets/pseudo/userland/lib/Makefile.depend b/targets/pseudo/userland/lib/Makefile.depend
index 2735e3b8ca15..a1b9769749b5 100644
--- a/targets/pseudo/userland/lib/Makefile.depend
+++ b/targets/pseudo/userland/lib/Makefile.depend
@@ -224,6 +224,12 @@ DIRDEPS+= lib/libgpio
DIRDEPS+= lib/libefivar
.endif
+.if ${MK_LLVM_LIBUNWIND} != "no"
+DIRDEPS+= \
+ lib/libgcc_eh \
+ lib/libgcc_s
+.endif
+
.if ${MK_OFED} != "no"
DIRDEPS+= \
contrib/ofed/usr.lib/libcxgb4 \