blob: 0c75b3cb4d23d1931c1667ccb85effbdb1917707 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# $NetBSD: buildlink2.mk,v 1.15 2003/09/12 15:54:43 grant Exp $
# Do not directly include this file in package Makefiles. It is
# automatically included when required based on USE_GCC2.
.if !defined(GCC2_BUILDLINK2_MK)
GCC2_BUILDLINK2_MK= # defined
BUILDLINK_DEPENDS.gcc?= gcc>=${GCC_REQD}
BUILDLINK_PKGSRCDIR.gcc?= ../../lang/gcc
# Packages that link against shared gcc libraries need a full
# dependency.
#
.if defined(USE_GCC_SHLIB)
BUILDLINK_DEPMETHOD.gcc+= full
.else
BUILDLINK_DEPMETHOD.gcc?= build
.endif
BUILDLINK_PREFIX.gcc= ${LOCALBASE}
_GCC_PREFIX= ${BUILDLINK_PREFIX.gcc}/${_GCC_SUBPREFIX}
BUILDLINK_PACKAGES+= gcc
BUILDLINK_WRAPPER_ENV+= \
COMPILER_PATH="${BUILDLINK_DIR}/bin"; export COMPILER_PATH
# These files are from gcc>=2.95.3.
BUILDLINK_FILES.gcc= ${_GCC_SUBPREFIX}include/g++-3/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}include/g++-3/*/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*/*/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/include/*/*/*/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/lib*.*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${_GCC_ARCHSUBDIR}/specs
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${MACHINE_GNU_PLATFORM}/include/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}${MACHINE_GNU_PLATFORM}/include/*/*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/libiberty.*
BUILDLINK_FILES.gcc+= ${_GCC_SUBPREFIX}lib/libstdc++.*
BUILDLINK_TARGETS+= gcc-buildlink
gcc-buildlink: _BUILDLINK_USE
.endif # GCC2_BUILDLINK2_MK
|