View | Details | Raw Unified | Return to bug 169449
Collapse All | Expand All

(-)bsd.gcc.mk (-1 / +8 lines)
Lines 16-21 Link Here
16
#   USE_GCC=	4.2+		# port requires GCC 4.2 or later.
16
#   USE_GCC=	4.2+		# port requires GCC 4.2 or later.
17
#   USE_GCC=	4.7			# port requires GCC 4.7.
17
#   USE_GCC=	4.7			# port requires GCC 4.7.
18
#
18
#
19
#   USE_GCC_RELEASE=yes		# use lang/gcc if its version satisfies USE_GCC
20
#
19
# If your port needs a Fortran compiler, please specify that with the
21
# If your port needs a Fortran compiler, please specify that with the
20
# USE_FORTRAN= knob.  Here is the list of options for that knob:
22
# USE_FORTRAN= knob.  Here is the list of options for that knob:
21
#
23
#
Lines 36-42 Link Here
36
38
37
# All GCC versions supported by the ports framework.  Keep them in
39
# All GCC versions supported by the ports framework.  Keep them in
38
# ascending order and in sync with the table below. 
40
# ascending order and in sync with the table below. 
39
GCCVERSIONS=	030402 040200 040400 040600 040700
41
GCCVERSIONS=	030402 040200 040400 040600 040700 RELEASE
40
42
41
# The first field if the OSVERSION in which it appeared in the base.
43
# The first field if the OSVERSION in which it appeared in the base.
42
# The second field is the OSVERSION in which it disappeared from the base.
44
# The second field is the OSVERSION in which it disappeared from the base.
Lines 46-51 Link Here
46
GCCVERSION_040400=	     0       0 4.4
48
GCCVERSION_040400=	     0       0 4.4
47
GCCVERSION_040600=	     0       0 4.6
49
GCCVERSION_040600=	     0       0 4.6
48
GCCVERSION_040700=	     0       0 4.7
50
GCCVERSION_040700=	     0       0 4.7
51
GCCVERSION_RELEASE=	     0       0 ${GCC_DEFAULT_VERSION}
49
52
50
GCC_DEFAULT_VERSION=	4.6
53
GCC_DEFAULT_VERSION=	4.6
51
GCC_DEFAULT_V=	${GCC_DEFAULT_VERSION:S/.//}
54
GCC_DEFAULT_V=	${GCC_DEFAULT_VERSION:S/.//}
Lines 177-183 Link Here
177
.for v in ${GCCVERSIONS}
180
.for v in ${GCCVERSIONS}
178
. if ${_USE_GCC} == ${_GCCVERSION_${v}_V}
181
. if ${_USE_GCC} == ${_GCCVERSION_${v}_V}
179
.  if ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R}
182
.  if ${OSVERSION} < ${_GCCVERSION_${v}_L} || ${OSVERSION} > ${_GCCVERSION_${v}_R}
183
.if defined(USE_GCC_RELEASE) && ${_USE_GCC:S/.//} <= ${GCC_DEFAULT_V}
184
V:=			# empty
185
.else
180
V:=			${_GCCVERSION_${v}_V:S/.//}
186
V:=			${_GCCVERSION_${v}_V:S/.//}
187
.endif
181
_GCC_BUILD_DEPENDS:=	gcc${V}
188
_GCC_BUILD_DEPENDS:=	gcc${V}
182
_GCC_PORT_DEPENDS:=	gcc${V}
189
_GCC_PORT_DEPENDS:=	gcc${V}
183
CC:=			gcc${V}
190
CC:=			gcc${V}

Return to bug 169449