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- @@ -42,6 +43,7 @@ CONFIGURE_OUTSOURCE= yes CONFIGURE_ARGS+=--target=${GCC_TARGET} --disable-nls --enable-languages=c,c++ \ --enable-gnu-indirect-function \ + --enable-initfini-array \ --without-headers \ --with-gmp=${LOCALBASE} \ --with-pkgversion="FreeBSD Ports Collection for ${PKGNAMEPREFIX:C/-//g}" \