summaryrefslogtreecommitdiff
path: root/lang/gcc2/buildlink3.mk
blob: 7c11b2378c2b5aad4353b420d720ec16e0f8c33d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $NetBSD: buildlink3.mk,v 1.2 2018/01/07 13:04:18 rillig Exp $

.include "../../mk/bsd.fast.prefs.mk"

BUILDLINK_TREE+=	gcc2

.if !defined(GCC2_BUILDLINK3_MK)
GCC2_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.gcc2+=	gcc2>=2.95
BUILDLINK_ABI_DEPENDS.gcc2+=	gcc2>=2.95.3nb7
BUILDLINK_PKGSRCDIR.gcc2?=	../../lang/gcc2
BUILDLINK_LIBDIRS.gcc2?=		\
	${_GCC_PREFIX:S/^${BUILDLINK_PREFIX.gcc2}\///}lib \
	${_GCC_ARCHDIR:S/^${BUILDLINK_PREFIX.gcc2}\///}

# Packages that link against shared libraries need a full dependency.
.if defined(_USE_GCC_SHLIB)
BUILDLINK_DEPMETHOD.gcc2+=	full
.else
BUILDLINK_DEPMETHOD.gcc2?=	build
.endif
.endif # GCC2_BUILDLINK3_MK

BUILDLINK_TREE+=	-gcc2