summaryrefslogtreecommitdiff
path: root/lang/gcc
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-01 14:09:45 +0000
committerjlam <jlam>2004-02-01 14:09:45 +0000
commitebbc3b29e2572551dad2f0a8b4daefe7d84666c0 (patch)
treea8a5470d2392e0e5886dde31ed95f991ddd23068 /lang/gcc
parentd92c94173d09a1a717f1cf2cd4af223c2fd60bfe (diff)
downloadpkgsrc-ebbc3b29e2572551dad2f0a8b4daefe7d84666c0.tar.gz
Add a buildlink3.mk file for use by bsd.compiler.mk. Note that we always
add the dependency regardless of the depth.
Diffstat (limited to 'lang/gcc')
-rw-r--r--lang/gcc/buildlink3.mk22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/gcc/buildlink3.mk b/lang/gcc/buildlink3.mk
new file mode 100644
index 00000000000..c128794349c
--- /dev/null
+++ b/lang/gcc/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1 2004/02/01 14:09:45 jlam Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+GCC_BUILDLINK3_MK:= ${GCC_BUILDLINK3_MK}+
+
+.include "../../mk/bsd.prefs.mk"
+
+.if !empty(GCC_BUILDLINK3_MK:M+)
+BUILDLINK_PACKAGES+= gcc
+BUILDLINK_DEPENDS+= gcc
+BUILDLINK_DEPENDS.gcc+= gcc>=${_GCC_REQD}
+BUILDLINK_PKGSRCDIR.gcc?= ../../lang/gcc
+
+# Packages that link against shared libraries need a full dependency.
+. if defined(USE_GCC_SHLIB)
+BUILDLINK_DEPMETHOD.gcc+= full
+. else
+BUILDLINK_DEPMETHOD.gcc?= build
+. endif
+.endif # GCC_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}