Introduce a new option BOOTSTRAP that allows switching between a

full bootstrap of GCC and just running a simple build.

Bootstrapping is the default upstream, and for very stable and old
flavors of GCC we disable this by default since that is a huge win
in terms of build time of the port.  No change in default behavior
for this port -- for the time being we continue to bootstrap.

Update to the 20130822 snapshot of GCC 4.8.2.
This commit is contained in:
Gerald Pfeifer 2013-08-25 01:38:39 +00:00
parent d37cc4cfcd
commit 3f7e4615cf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325321
2 changed files with 11 additions and 4 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gcc
PORTVERSION= 4.8.2.s20130815
PORTVERSION= 4.8.2.s20130822
CATEGORIES= lang java
MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR= snapshots/${DISTVERSION}
@ -37,10 +37,13 @@ USE_PERL5_BUILD=yes
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure
OPTIONS_DEFINE= BOOTSTRAP
OPTIONS_DEFINE_i386= JAVA
OPTIONS_DEFINE_amd64= JAVA
OPTIONS_DEFAULT= BOOTSTRAP
OPTIONS_DEFAULT_i386= JAVA
OPTIONS_DEFAULT_amd64= JAVA
BOOTSTRAP_DESC= Build using a full bootstrap
.include <bsd.port.pre.mk>
@ -61,6 +64,11 @@ TARGLIB= ${PREFIX}/lib/gcc${SUFFIX}
LIBEXEC= ${PREFIX}/libexec/gcc${SUFFIX}
GNU_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
.if empty(PORT_OPTIONS:MBOOTSTRAP)
CONFIGURE_ARGS+=--disable-bootstrap
.else
ALL_TARGET= bootstrap-lean
.endif
CONFIGURE_ARGS+=--disable-nls \
--libdir=${TARGLIB} \
--libexecdir=${LIBEXEC} \
@ -73,7 +81,6 @@ CONFIGURE_ARGS+=--disable-nls \
--with-pkgversion="FreeBSD Ports Collection" \
--with-system-zlib
MAKE_ARGS+= MAKEINFOFLAGS="--no-split"
ALL_TARGET= bootstrap-lean
USE_LDCONFIG= ${TARGLIB}
PLIST_SUB= GCC_VERSION=${GCC_VERSION} \
GNU_HOST=${CONFIGURE_TARGET} \

View file

@ -1,2 +1,2 @@
SHA256 (gcc-4.8-20130815.tar.bz2) = 98839a700c0ab8a005a18d7704ef5fa553d3ce5771aa357480b11b5cce94389e
SIZE (gcc-4.8-20130815.tar.bz2) = 81708695
SHA256 (gcc-4.8-20130822.tar.bz2) = 2499c8adaa5c73dee6ff40f2801661c2b02b462e206e6fb83d3da70757793e61
SIZE (gcc-4.8-20130822.tar.bz2) = 81718564