pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang gcc47: don't use PCH for libstdc++ on gcc5, it ca...
details: https://anonhg.NetBSD.org/pkgsrc/rev/25f7aefb6839
branches: trunk
changeset: 352080:25f7aefb6839
user: maya <maya%pkgsrc.org@localhost>
date: Tue Sep 06 12:00:33 2016 +0000
description:
gcc47: don't use PCH for libstdc++ on gcc5, it causes hangs during configure.
limited to gcc5 because others do not seem to run into the same issues, to
avoid a regression for them.
disable libssp on netbsd - it conflicts with native libssp
(related: PR pkg/47213)
Use a more sane specfile for netbsd, linking against libc when building
shared.
bump gcc47 PKGREVISION
bump gcc47-libs PKGREVISION further than gcc47
diffstat:
lang/gcc47-libs/Makefile | 4 ++--
lang/gcc47/Makefile | 18 ++++++++++++++++--
lang/gcc47/distinfo | 3 ++-
lang/gcc47/patches/patch-gcc_config_netbsd.h | 22 ++++++++++++++++++++++
4 files changed, 42 insertions(+), 5 deletions(-)
diffs (100 lines):
diff -r 87242eec2c76 -r 25f7aefb6839 lang/gcc47-libs/Makefile
--- a/lang/gcc47-libs/Makefile Tue Sep 06 10:37:29 2016 +0000
+++ b/lang/gcc47-libs/Makefile Tue Sep 06 12:00:33 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2016/01/21 11:56:29 jperkin Exp $
+# $NetBSD: Makefile,v 1.24 2016/09/06 12:00:33 maya Exp $
GCC_PKGNAME= gcc47
.include "../../lang/${GCC_PKGNAME}/version.mk"
@@ -8,7 +8,7 @@
## The PKGREVISION of this package needs to be at least 1 more than the
## PKGREVISION of the lang/gcc47 package so that with the dependence pattern
## '{gcc47,gcc47-libs}>=4.7.*' pkg_all will choose gcc47-libs over gcc47.
-PKGREVISION= 2
+PKGREVISION= 4
CATEGORIES= lang
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 87242eec2c76 -r 25f7aefb6839 lang/gcc47/Makefile
--- a/lang/gcc47/Makefile Tue Sep 06 10:37:29 2016 +0000
+++ b/lang/gcc47/Makefile Tue Sep 06 12:00:33 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2016/07/09 06:38:24 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2016/09/06 12:00:33 maya Exp $
GCC_PKGNAME= gcc47
.include "version.mk"
@@ -8,7 +8,7 @@
## When bumping the PKGREVISION of this package the PKGREVISION of
## lang/gcc47-libs needs to be bump to be at least 1 more than the
## PKGREVISION of this package!
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC47_DIST_VERSION}/}
EXTRACT_SUFX= .tar.bz2
@@ -68,6 +68,20 @@
## For target librarys and libjava programs.
CONFIGURE_ENV+= LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q}
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-5.*)
+# hangs "checking for compiler with PCH support"
+# similar to GCC bug 54719/54645.
+CONFIGURE_ARGS+= --disable-libstdcxx-pch
+.endif
+
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)
+# on NetBSD, use the native SSP code in libc
+CONFIGURE_ARGS+= --disable-libssp
+.else
+CONFIGURE_ARGS+= --enable-libssp
+.endif
+
CONFIGURE_ARGS+= --enable-languages=${LANGS:Q}
CONFIGURE_ARGS+= --enable-shared
CONFIGURE_ARGS+= --enable-long-long
diff -r 87242eec2c76 -r 25f7aefb6839 lang/gcc47/distinfo
--- a/lang/gcc47/distinfo Tue Sep 06 10:37:29 2016 +0000
+++ b/lang/gcc47/distinfo Tue Sep 06 12:00:33 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2016/09/06 06:45:32 maya Exp $
+$NetBSD: distinfo,v 1.27 2016/09/06 12:00:33 maya Exp $
SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449
RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a
@@ -16,6 +16,7 @@
SHA1 (patch-gcc_config_dragonfly.opt) = 92f615c73c2e94664bae5b5935ab8b09bca15f73
SHA1 (patch-gcc_config_i386_dragonfly.h) = 0d3f785434c02beb9c4561fe59842a970e8f7896
SHA1 (patch-gcc_config_netbsd-stdint.h) = 025fc883101a187e84ed4c0772406720d645d550
+SHA1 (patch-gcc_config_netbsd.h) = 086b593cf9f05e654df9e1a527485ca727ec44cc
SHA1 (patch-gcc_config_sol2.h) = 4f6ffe871840dcf7e2e469fdcc5d327b9b00f957
SHA1 (patch-gcc_configure) = a4b670d0c54c410d38715b7a2a572a7048e3ec5e
SHA1 (patch-gcc_cp_cfns.gperf) = 8f218068e231d97e1b8936aff898c1047440b0ff
diff -r 87242eec2c76 -r 25f7aefb6839 lang/gcc47/patches/patch-gcc_config_netbsd.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc47/patches/patch-gcc_config_netbsd.h Tue Sep 06 12:00:33 2016 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2016/09/06 12:00:33 maya Exp $
+
+when using shared, link against libc.
+
+--- gcc/config/netbsd.h.orig 2013-01-10 20:38:27.000000000 +0000
++++ gcc/config/netbsd.h
+@@ -96,6 +96,7 @@ along with GCC; see the file COPYING3.
+ %{!pg:-lposix}} \
+ %{p:-lposix_p} \
+ %{pg:-lposix_p}} \
++ %{shared:-lc} \
+ %{!shared: \
+ %{!symbolic: \
+ %{!p: \
+@@ -109,6 +110,7 @@ along with GCC; see the file COPYING3.
+ %{!pg:-lposix}} \
+ %{p:-lposix_p} \
+ %{pg:-lposix_p}} \
++ %{shared:-lc} \
+ %{!shared: \
+ %{!symbolic: \
+ %{!p: \
Home |
Main Index |
Thread Index |
Old Index