Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --- pkgsrc/lang/gcc6/Makefile 2023/06/03 13:22:04 1.38 +++ pkgsrc/lang/gcc6/Makefile 2023/08/18 10:57:58 1.43 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.38 2023/06/03 13:22:04 riastradh Exp $ +# $NetBSD: Makefile,v 1.43 2023/08/18 10:57:58 nia Exp $ GCC_PKGNAME= gcc6 .include "version.mk" @@ -8,7 +8,7 @@ PKGNAME= ${GCC_PKGNAME}-${GCC6_DIST_VERS ## When bumping the PKGREVISION of this package the PKGREVISION of ## lang/gcc6-libs needs to be bumped to be at least 1 more than the ## PKGREVISION of this package! -PKGREVISION= 8 +PKGREVISION= 9 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC6_DIST_VERSION}/} EXTRACT_SUFX= .tar.xz @@ -30,7 +30,7 @@ CHECK_RELRO_SKIP+= ${GCC_PKGNAME}/lib/* NOT_FOR_PLATFORM= Interix-*-* USE_LANGUAGES= c c++ -USE_TOOLS+= gmake makeinfo sed:run tar:build +USE_TOOLS+= gmake makeinfo sed tar:build USE_TOOLS.NetBSD+= gsed GNU_CONFIGURE= yes @@ -46,6 +46,10 @@ INFO_FILES= yes CONFIGURE_ARGS+= --disable-libstdcxx-pch GCC_TARGET_MACHINE= ${MACHINE_GNU_PLATFORM} +# error: 'for' loop initial declarations are only allowed in C99 mode +USE_CC_FEATURES+= c99 +FORCE_C_STD= gnu99 + UNLIMIT_RESOURCES+= datasize UNLIMIT_RESOURCES+= stacksize @@ -93,9 +97,10 @@ SUBST_SED.fixinc= -e "s,\./fixinc.sh,-c ## For graphite support. .if !empty(PKG_OPTIONS:Mgcc-graphite) +EXTRACT_ONLY+= ${ISL14}.tar.bz2 + post-extract: - ${TAR} -jxf ${DISTDIR}/${ISL14}.tar.bz2 -C ${WRKSRC} - ${MV} ${WRKSRC}/${ISL14} ${WRKSRC}/isl + ${MV} ${WRKDIR}/${ISL14} ${WRKSRC}/isl .endif ## For target librarys and libjava programs. @@ -106,6 +111,8 @@ CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_C CONFIGURE_ENV+= CXX_FOR_BUILD=${NATIVE_CXX:Q} .endif +CFLAGS+= -Wno-missing-attributes + CONFIGURE_ARGS+= --enable-languages=${LANGS:Q} CONFIGURE_ARGS+= --enable-shared CONFIGURE_ARGS+= --enable-long-long