Sun Apr 23 09:49:15 2017 UTC ()
Pullup ticket #5355 - requested by sevan
lang/gcc49: build fix

Revisions pulled up:
- lang/gcc49/Makefile                                           1.14

---
   Module Name:    pkgsrc
   Committed By:   maya
   Date:           Sat Apr 22 12:22:01 UTC 2017

   Modified Files:
           pkgsrc/lang/gcc49: Makefile

   Log Message:
   gcc49: don't use precompiled headers for libstdc++

   this is a build time optimization that causes hangs on some machines
   (netbsd-7/i386, but not netbsd-7/amd64). disable it globally instead
   of guessing which are broken.

   gcc{5,6} are already disabling it.

   PR pkg/51352: Compilation error on lang/gcc49
   PR pkg/50210: Compilation of gcc 4.9 and 5.2 hangs on NetBSD 6.1_STABLE


(bsiegert)
diff -r1.13 -r1.13.6.1 pkgsrc/lang/gcc49/Makefile

cvs diff -r1.13 -r1.13.6.1 pkgsrc/lang/gcc49/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/gcc49/Attic/Makefile 2016/09/06 12:37:47 1.13
+++ pkgsrc/lang/gcc49/Attic/Makefile 2017/04/23 09:49:15 1.13.6.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.13 2016/09/06 12:37:47 jperkin Exp $ 1# $NetBSD: Makefile,v 1.13.6.1 2017/04/23 09:49:15 bsiegert Exp $
2 2
3GCC_PKGNAME= gcc49 3GCC_PKGNAME= gcc49
4.include "version.mk" 4.include "version.mk"
5 5
6DISTNAME= gcc-${GCC49_DIST_VERSION} 6DISTNAME= gcc-${GCC49_DIST_VERSION}
7PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION} 7PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION}
8 8
9## When bumping the PKGREVISION of this package the PKGREVISION of 9## When bumping the PKGREVISION of this package the PKGREVISION of
10## lang/gcc49-libs needs to be bump to be at least 1 more than the 10## lang/gcc49-libs needs to be bump to be at least 1 more than the
11## PKGREVISION of this package! 11## PKGREVISION of this package!
12#PKGREVISION= 12#PKGREVISION=
13 13
14CATEGORIES= lang 14CATEGORIES= lang
@@ -28,26 +28,27 @@ NOT_FOR_PLATFORM= Interix-*-* @@ -28,26 +28,27 @@ NOT_FOR_PLATFORM= Interix-*-*
28USE_LANGUAGES= c c++ 28USE_LANGUAGES= c c++
29USE_TOOLS+= gmake makeinfo sed:run 29USE_TOOLS+= gmake makeinfo sed:run
30 30
31GNU_CONFIGURE= yes 31GNU_CONFIGURE= yes
32## Build outside ${WRKSRC} 32## Build outside ${WRKSRC}
33OBJDIR= ../build 33OBJDIR= ../build
34CONFIGURE_DIRS= ${OBJDIR} 34CONFIGURE_DIRS= ${OBJDIR}
35CONFIGURE_SCRIPT= ../${DISTNAME}/configure 35CONFIGURE_SCRIPT= ../${DISTNAME}/configure
36GCC_SUBPREFIX= ${GCC_PKGNAME} 36GCC_SUBPREFIX= ${GCC_PKGNAME}
37GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} 37GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX}
38GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM} 38GCC_TARGET_MACHINE?= ${MACHINE_GNU_PLATFORM}
39GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} 39GNU_CONFIGURE_PREFIX= ${GCC_PREFIX}
40INFO_FILES= yes 40INFO_FILES= yes
 41CONFIGURE_ARGS+= --disable-libstdcxx-pch
41 42
42UNLIMIT_RESOURCES+= datasize 43UNLIMIT_RESOURCES+= datasize
43UNLIMIT_RESOURCES+= stacksize 44UNLIMIT_RESOURCES+= stacksize
44 45
45SUBST_CLASSES+= vars 46SUBST_CLASSES+= vars
46SUBST_STAGE.vars= pre-configure 47SUBST_STAGE.vars= pre-configure
47SUBST_FILES.vars= gcc/Makefile.in 48SUBST_FILES.vars= gcc/Makefile.in
48SUBST_VARS.vars= GCC_TARGET_MACHINE 49SUBST_VARS.vars= GCC_TARGET_MACHINE
49 50
50.include "../../mk/bsd.prefs.mk" 51.include "../../mk/bsd.prefs.mk"
51 52
52LANGS= c 53LANGS= c
53 54