diff options
author | maya <maya@pkgsrc.org> | 2016-09-06 05:08:48 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2016-09-06 05:08:48 +0000 |
commit | 41e4bf70d6ba32f7729102f548633d2b488ebde0 (patch) | |
tree | 5b71678e2010e7388736d19b2b48a38fd4f97f87 /lang/gcc5 | |
parent | 535c229387bf173503c5bf201ebd516f2c1925e1 (diff) | |
download | pkgsrc-41e4bf70d6ba32f7729102f548633d2b488ebde0.tar.gz |
gcc5: netbsd-only: unconditionally disable libssp, use a saner specfile.
because we unconditionally disable libssp, we don't need the workaround
for ssp.h not found, so we can remove that part of that makefile.
bump gcc5 PKGREVISION
bump gcc5-libs PKGREVISION further than gcc5.
Diffstat (limited to 'lang/gcc5')
-rw-r--r-- | lang/gcc5/Makefile | 16 | ||||
-rw-r--r-- | lang/gcc5/distinfo | 4 | ||||
-rw-r--r-- | lang/gcc5/patches/patch-gcc_config_netbsd.h | 25 |
3 files changed, 28 insertions, 17 deletions
diff --git a/lang/gcc5/Makefile b/lang/gcc5/Makefile index 4040cda2e14..612d1f80e1e 100644 --- a/lang/gcc5/Makefile +++ b/lang/gcc5/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.12 2016/07/09 06:38:25 wiz Exp $ +# $NetBSD: Makefile,v 1.13 2016/09/06 05:08:48 maya Exp $ GCC_PKGNAME= gcc5 -PKGREVISION= 1 +PKGREVISION= 2 .include "version.mk" DISTNAME= gcc-${GCC5_DIST_VERSION} @@ -65,14 +65,6 @@ BOOT_LDFLAGS+= ${LDFLAGS:M-Wl,-syslibroot*} # GCC does not understand this option; remove it, or stage build will fail BUILDLINK_TRANSFORM+= rm:-stdlib=libc++ -# Avoid ssp.h not found error. -.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) -SUBST_CLASSES+= fixinc -SUBST_STAGE.fixinc= pre-configure -SUBST_FILES.fixinc= gcc/Makefile.in -SUBST_SED.fixinc= -e "s,\./fixinc.sh,-c true," -.endif - .include "options.mk" ## For graphite support. @@ -90,8 +82,8 @@ CONFIGURE_ARGS+= --enable-languages=${LANGS:Q} CONFIGURE_ARGS+= --enable-shared CONFIGURE_ARGS+= --enable-long-long CONFIGURE_ARGS+= --with-local-prefix=${GCC_PREFIX:Q} -.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) && ${PKGSRC_USE_SSP:Uno} != "no" -# on NetBSD with stack protector, use the native SSP code in libc +.if !empty(MACHINE_PLATFORM:MNetBSD-*-*) +# on NetBSD, use the native SSP code in libc CONFIGURE_ARGS+= --disable-libssp .else CONFIGURE_ARGS+= --enable-libssp diff --git a/lang/gcc5/distinfo b/lang/gcc5/distinfo index 8558147a6f0..e3bdf89c2e1 100644 --- a/lang/gcc5/distinfo +++ b/lang/gcc5/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.10 2016/07/05 18:55:08 ryoon Exp $ +$NetBSD: distinfo,v 1.11 2016/09/06 05:08:48 maya Exp $ SHA1 (gcc-5.4.0.tar.bz2) = 07524df2b4ab9070bad9c49ab668da72237b8115 RMD160 (gcc-5.4.0.tar.bz2) = 7ae3413ca7e90bb21e65e637c02ddf2b675b45f4 @@ -15,7 +15,7 @@ SHA1 (patch-gcc_config_host-netbsd.c) = 765295f07edb8a68f1910e3a9b4dd2a7dcd491a5 SHA1 (patch-gcc_config_netbsd-protos.h) = 6d28864b4ccc8c1a63fe28e43601b84b63a00633 SHA1 (patch-gcc_config_netbsd-stdint.h) = 025fc883101a187e84ed4c0772406720d645d550 SHA1 (patch-gcc_config_netbsd.c) = 9d1327f926dece6e753093e759b5c8b707747ae1 -SHA1 (patch-gcc_config_netbsd.h) = b722614a3822e9800a2a8f65a87e56927d05a1b1 +SHA1 (patch-gcc_config_netbsd.h) = 47e1b5d09d0529de00163ad70f47278b82a668b3 SHA1 (patch-gcc_config_t-netbsd) = 802ad5706aa7ca9629f8e237f08fbb1569d28846 SHA1 (patch-gcc_config_x-netbsd) = 6dc3d78e26df62054ea29f98ca51592858e671e3 SHA1 (patch-gcc_configure) = d6cc6a0bd257829ca2fd077a852fc447acaa63a0 diff --git a/lang/gcc5/patches/patch-gcc_config_netbsd.h b/lang/gcc5/patches/patch-gcc_config_netbsd.h index 995fb188c52..8935f45740b 100644 --- a/lang/gcc5/patches/patch-gcc_config_netbsd.h +++ b/lang/gcc5/patches/patch-gcc_config_netbsd.h @@ -1,6 +1,9 @@ -$NetBSD: patch-gcc_config_netbsd.h,v 1.1 2015/07/16 12:03:36 ryoon Exp $ +$NetBSD: patch-gcc_config_netbsd.h,v 1.2 2016/09/06 05:08:48 maya Exp $ ---- gcc/config/netbsd.h.orig 2014-01-02 22:23:26.000000000 +0000 +when using shared, link against libc +another unexplained change + +--- gcc/config/netbsd.h.orig 2015-01-05 12:33:28.000000000 +0000 +++ gcc/config/netbsd.h @@ -17,6 +17,9 @@ You should have received a copy of the G along with GCC; see the file COPYING3. If not see @@ -12,7 +15,23 @@ $NetBSD: patch-gcc_config_netbsd.h,v 1.1 2015/07/16 12:03:36 ryoon Exp $ /* TARGET_OS_CPP_BUILTINS() common to all NetBSD targets. */ #define NETBSD_OS_CPP_BUILTINS_COMMON() \ do \ -@@ -175,3 +178,9 @@ along with GCC; see the file COPYING3. +@@ -96,6 +99,7 @@ along with GCC; see the file COPYING3. + %{!pg:-lposix}} \ + %{p:-lposix_p} \ + %{pg:-lposix_p}} \ ++ %{shared:-lc} \ + %{!shared: \ + %{!symbolic: \ + %{!p: \ +@@ -109,6 +113,7 @@ along with GCC; see the file COPYING3. + %{!pg:-lposix}} \ + %{p:-lposix_p} \ + %{pg:-lposix_p}} \ ++ %{shared:-lc} \ + %{!shared: \ + %{!symbolic: \ + %{!p: \ +@@ -175,3 +180,9 @@ along with GCC; see the file COPYING3. #undef WINT_TYPE #define WINT_TYPE "int" |