Index: base/gcc/Makefile =================================================================== --- base/gcc/Makefile +++ base/gcc/Makefile @@ -2,6 +2,7 @@ PORTNAME= gcc PORTVERSION= 6.4.0 +PORTREVISION= 1 CATEGORIES= base MASTER_SITES= GCC/releases/gcc-${DISTVERSION} \ http://www.mpfr.org/mpfr-3.1.6/:mpfr \ @@ -61,6 +62,10 @@ .include +.if ${OSVERSION} >= 1200000 +CONFIGURE_ARGS+= --enable-initfini-array +.endif + .if ${ARCH:Mmips*} PLIST_SUB+= MIPS="" .else Index: devel/powerpc64-gcc/Makefile =================================================================== --- devel/powerpc64-gcc/Makefile +++ devel/powerpc64-gcc/Makefile @@ -2,6 +2,7 @@ PORTNAME= gcc PORTVERSION= 6.4.0 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= GCC/releases/gcc-${DISTVERSION} PKGNAMEPREFIX?= powerpc64- @@ -60,6 +61,10 @@ .include .include +.if ${GCC_TARGET:M*${OPSYS:tl}*} != "" +CONFIGURE_ARGS+= --enable-initfini-array +.endif + post-patch: @${REINPLACE_CMD} -e '/LIBSTDCXX/ s/stdc\+\+/c\+\+/g ' \ ${WRKSRC}//gcc/cp/g++spec.c