Index: ports/Mk/bsd.gcc.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.gcc.mk,v retrieving revision 1.62 diff -u -r1.62 bsd.gcc.mk --- ports/Mk/bsd.gcc.mk 12 Nov 2011 22:03:55 -0000 1.62 +++ ports/Mk/bsd.gcc.mk 26 Jan 2012 14:41:30 -0000 @@ -98,8 +98,11 @@ MAKE_ENV+= F77="${F77}" FC="${FC}" FFLAGS="${FFLAGS}" .endif +.if defined(USE_GCC_BUILD) && !defined(USE_GCC) +USE_GCC= ${USE_GCC_BUILD} +.endif -.if defined(USE_GCC) +.if defined(USE_GCC) && !defined(GCC_BOOTSTRAPPING) # GCC 4.5 got disconnected 2011-11-12, take care of any uses. .if ${USE_GCC} == "4.5+" @@ -175,7 +178,7 @@ .endif # defined(USE_GCC) -.if defined(_USE_GCC) +.if defined(_USE_GCC) && !defined(GCC_BOOTSTRAPPING) # A concrete version has been selected. Determine if the installed OS # features this version in the base, and if not then set proper ports # dependencies, CC, CXX, CPP, and flags. @@ -205,7 +208,9 @@ .if defined(_GCC_BUILD_DEPENDS) BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS} . if ${_USE_GCC} != 3.4 +. if !defined(USE_GCC_BUILD) RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:${PORTSDIR}/lang/${_GCC_BUILD_DEPENDS} +. endif . if ${_USE_GCC} != 4.2 # Later GCC ports already depend on binutils; make sure whatever we # build leverages this as well. Index: ports/Mk/bsd.port.mk =================================================================== RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v retrieving revision 1.703 diff -u -r1.703 bsd.port.mk --- ports/Mk/bsd.port.mk 22 Jan 2012 15:41:33 -0000 1.703 +++ ports/Mk/bsd.port.mk 26 Jan 2012 14:41:31 -0000 @@ -311,6 +311,8 @@ # the regular expression. # USE_GCC - If set, this port requires this version of gcc, either in # the system or installed from a port. +# USE_GCC_BUILD - If set, this port builds using this version of gcc, +# but adds no runtime dependency. # USE_CSTD - Override the default C language standard (gnu89, gnu99) # USE_BINUTILS - Use binutils suite from port instead of the version in base. # USE_GMAKE - If set, this port uses gmake. @@ -1672,7 +1674,7 @@ CONFIGURE_ENV+= MAKE=${GMAKE} .endif -.if defined(USE_GCC) || defined(USE_FORTRAN) +.if defined(USE_GCC) || defined(USE_GCC_BUILD) || defined(USE_FORTRAN) .include "${PORTSDIR}/Mk/bsd.gcc.mk" .endif