summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsbd <sbd>2012-09-16 07:31:18 +0000
committersbd <sbd>2012-09-16 07:31:18 +0000
commit75a0751275b87f52ee42e0f524fb7fe822d7cf9f (patch)
treeb651bd1fb7b247e44500cb5ed81f9330ffd1b39f /mk
parent729cb9cd4fe1cbdcc173b40141a31d4e667da3e2 (diff)
downloadpkgsrc-75a0751275b87f52ee42e0f524fb7fe822d7cf9f.tar.gz
Add dependency on GCC libraries if requested.
Code by Jonathan Perkin.
Diffstat (limited to 'mk')
-rw-r--r--mk/compiler/gcc.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk
index 9a6496e7682..0291d0a8303 100644
--- a/mk/compiler/gcc.mk
+++ b/mk/compiler/gcc.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.126 2012/09/13 10:17:14 sbd Exp $
+# $NetBSD: gcc.mk,v 1.127 2012/09/16 07:31:18 sbd Exp $
#
# This is the compiler definition for the GNU Compiler Collection.
#
@@ -739,6 +739,14 @@ PREPEND_PATH+= ${_GCC_DIR}/bin
. endfor
.endif
+# Add dependency on GCC libraries if requested.
+.if !empty(_USE_GCC_SHLIB:M[Yy][Ee][Ss]) && !empty(USE_PKGSRC_GCC_RUNTIME:M[Yy][Ee][Ss])
+# Special case packages which are themselves a dependency of gcc runtime.
+. if empty(PKGPATH:Mdevel/libtool-base) && empty(PKGPATH:Mdevel/binutils)
+. include "../../lang/gcc47-libs/buildlink3.mk"
+. endif
+.endif
+
.for _var_ in ${_GCC_VARS}
. if !target(${_GCC_${_var_}})
override-tools: ${_GCC_${_var_}}