pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang gcc49 netbsd-only: disable libssp, use a more san...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3f84fca9cb8b
branches:  trunk
changeset: 352060:3f84fca9cb8b
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Sep 05 20:17:01 2016 +0000

description:
gcc49 netbsd-only: disable libssp, use a more sane specfile.

bump gcc49 PKGREVISION
bump gcc49-libs so it is a higher PKGREVISION than gcc49

diffstat:

 lang/gcc49-libs/Makefile                     |   4 ++--
 lang/gcc49/Makefile                          |  11 ++++++++---
 lang/gcc49/distinfo                          |   3 ++-
 lang/gcc49/patches/patch-gcc_config_netbsd.h |  22 ++++++++++++++++++++++
 4 files changed, 34 insertions(+), 6 deletions(-)

diffs (97 lines):

diff -r 84354bcb6e4d -r 3f84fca9cb8b lang/gcc49-libs/Makefile
--- a/lang/gcc49-libs/Makefile  Mon Sep 05 20:14:28 2016 +0000
+++ b/lang/gcc49-libs/Makefile  Mon Sep 05 20:17:01 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2016/01/21 11:53:46 jperkin Exp $
+# $NetBSD: Makefile,v 1.7 2016/09/05 20:17:01 maya Exp $
 
 GCC_PKGNAME=   gcc49
 .include       "../../lang/${GCC_PKGNAME}/version.mk"
@@ -9,7 +9,7 @@
 ## The PKGREVISION of this package needs to be at least 1 more than the
 ## PKGREVISION of the lang/gcc49 package so that with the dependence pattern
 ## '{gcc49,gcc49-libs}>=4.9.*' pkg_add will choose gcc49-libs over gcc49.
-PKGREVISION=   2
+PKGREVISION=   4
 
 CATEGORIES=    lang
 MASTER_SITES=  # empty
diff -r 84354bcb6e4d -r 3f84fca9cb8b lang/gcc49/Makefile
--- a/lang/gcc49/Makefile       Mon Sep 05 20:14:28 2016 +0000
+++ b/lang/gcc49/Makefile       Mon Sep 05 20:17:01 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2016/07/09 06:38:25 wiz Exp $
+# $NetBSD: Makefile,v 1.12 2016/09/05 20:17:01 maya Exp $
 
 GCC_PKGNAME=   gcc49
 .include       "version.mk"
@@ -9,7 +9,7 @@
 ## When bumping the PKGREVISION of this package the PKGREVISION of
 ## lang/gcc49-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-${GCC49_DIST_VERSION}/}
@@ -70,11 +70,16 @@
 ## For target librarys and libjava programs.
 CONFIGURE_ENV+=                LDFLAGS_FOR_TARGET=${LDFLAGS_FOR_TARGET:Q}
 
+.if !empty(MACHINE_PLATFORM:MNetBSD-*-*)                                                                                                                                                               
      # use the native SSP code in netbsd libc, gcc libssp conflicts with it.
+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
 CONFIGURE_ARGS+=       --with-local-prefix=${GCC_PREFIX:Q}
-CONFIGURE_ARGS+=       --enable-libssp
 CONFIGURE_ARGS+=       --enable-threads=posix
 CONFIGURE_ARGS+=       --with-boot-ldflags=${BOOT_LDFLAGS:Q}
 
diff -r 84354bcb6e4d -r 3f84fca9cb8b lang/gcc49/distinfo
--- a/lang/gcc49/distinfo       Mon Sep 05 20:14:28 2016 +0000
+++ b/lang/gcc49/distinfo       Mon Sep 05 20:17:01 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 22:50:35 agc Exp $
+$NetBSD: distinfo,v 1.10 2016/09/05 20:17:01 maya Exp $
 
 SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449
 RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a
@@ -18,6 +18,7 @@
 SHA1 (patch-gcc_config_host-netbsd.c) = 765295f07edb8a68f1910e3a9b4dd2a7dcd491a5
 SHA1 (patch-gcc_config_i386_dragonfly.h) = 5756b62791273f77866f06be1df0c267dc90a2ee
 SHA1 (patch-gcc_config_netbsd-stdint.h) = fc430c80adda9d3f58eea47816338f697a659889
+SHA1 (patch-gcc_config_netbsd.h) = 086b593cf9f05e654df9e1a527485ca727ec44cc
 SHA1 (patch-gcc_config_x-netbsd) = 6dc3d78e26df62054ea29f98ca51592858e671e3
 SHA1 (patch-gcc_configure) = eb52890725d2eabb200275b6cb61fd86d976ee31
 SHA1 (patch-gcc_fortran_f95-lang.c) = 9dbac16c146821eed9b06e1e9f0da85ff5c4ee75
diff -r 84354bcb6e4d -r 3f84fca9cb8b lang/gcc49/patches/patch-gcc_config_netbsd.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/gcc49/patches/patch-gcc_config_netbsd.h      Mon Sep 05 20:17:01 2016 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2016/09/05 20:17:01 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