diff options
author | sbd <sbd@pkgsrc.org> | 2012-09-16 07:31:18 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-09-16 07:31:18 +0000 |
commit | 26b53a6ec96021525cf1579b56d2e1ff8788c3cd (patch) | |
tree | b651bd1fb7b247e44500cb5ed81f9330ffd1b39f /mk | |
parent | 3d8a73e83601f5d3cd164e53391323f5ca25e56b (diff) | |
download | pkgsrc-26b53a6ec96021525cf1579b56d2e1ff8788c3cd.tar.gz |
Add dependency on GCC libraries if requested.
Code by Jonathan Perkin.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/compiler/gcc.mk | 10 |
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_}} |