diff options
author | maya <maya@pkgsrc.org> | 2018-07-18 23:15:42 +0000 |
---|---|---|
committer | maya <maya@pkgsrc.org> | 2018-07-18 23:15:42 +0000 |
commit | eb83cce587f74e99e477bf081aabc6bb1e373171 (patch) | |
tree | b5136e873c3fa88ca8d5a5feeeb6b1ee9a3fed66 /lang/gcc48 | |
parent | ce8300d41ca840b33bd8c5b5c7d4823711e0a8a3 (diff) | |
download | pkgsrc-eb83cce587f74e99e477bf081aabc6bb1e373171.tar.gz |
gcc48: don't try to make references to stack_chk_fail_local on netbsd/sun
sun was added as joyent is patching for the same.
this code is only reached if compiling for i386 (or some variation of ppc)
netbsd's stack_chk_fail_local won't work for this.
bump gcc48-libs PKGREVISION above gcc48
PR pkg/53436.
Diffstat (limited to 'lang/gcc48')
-rw-r--r-- | lang/gcc48/Makefile | 4 | ||||
-rw-r--r-- | lang/gcc48/distinfo | 3 | ||||
-rw-r--r-- | lang/gcc48/patches/patch-gcc_targhooks.c | 17 |
3 files changed, 21 insertions, 3 deletions
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile index 715b1539dbb..717a42844d0 100644 --- a/lang/gcc48/Makefile +++ b/lang/gcc48/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.40 2018/07/18 00:06:20 joerg Exp $ +# $NetBSD: Makefile,v 1.41 2018/07/18 23:15:42 maya Exp $ GCC_PKGNAME= gcc48 .include "version.mk" @@ -8,7 +8,7 @@ PKGNAME= ${GCC_PKGNAME}-${GCC48_DIST_VERSION} ## When bumping the PKGREVISION of this package the PKGREVISION of ## lang/gcc48-libs needs to be bump to be at least 1 more than the ## PKGREVISION of this package! -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC48_DIST_VERSION}/} EXTRACT_SUFX= .tar.bz2 diff --git a/lang/gcc48/distinfo b/lang/gcc48/distinfo index cba9d47249c..cc1f17c6903 100644 --- a/lang/gcc48/distinfo +++ b/lang/gcc48/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.37 2018/06/27 10:07:07 maya Exp $ +$NetBSD: distinfo,v 1.38 2018/07/18 23:15:42 maya Exp $ SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449 RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a @@ -60,6 +60,7 @@ SHA1 (patch-gcc_go_go-lang.c) = dbef7b86ccbf657356412a2420d98725d53eb356 SHA1 (patch-gcc_java_lang.c) = 781c8f70241df0e5cfb1c69beb755bee14a6c54e SHA1 (patch-gcc_lto_lto.c) = cc7fdf396c238785141e0ffc8ca8f62a91640f58 SHA1 (patch-gcc_system.h) = 4c959a6b1c4d524cbdf44cfb80f0e5758ec20783 +SHA1 (patch-gcc_targhooks.c) = f9a71960346aea8cc33c397630c32bc4d48ff427 SHA1 (patch-gcc_testsuite_g++.dg_eh_unwind-direct.C) = fd85ccee102e9618a8010d2dcbb2d9916b28f1cc SHA1 (patch-gcc_testsuite_gcc.dg_format_format.h) = 5bb7af9f355dcd80bfaf4a206d86e4badd4d4b4d SHA1 (patch-include_libiberty.h) = ad2c64e9a14405c89b02ff68811b1c889405d0a1 diff --git a/lang/gcc48/patches/patch-gcc_targhooks.c b/lang/gcc48/patches/patch-gcc_targhooks.c new file mode 100644 index 00000000000..fd0930769f9 --- /dev/null +++ b/lang/gcc48/patches/patch-gcc_targhooks.c @@ -0,0 +1,17 @@ +$NetBSD: patch-gcc_targhooks.c,v 1.1 2018/07/18 23:15:42 maya Exp $ + +PR pkg/53436 +netbsd can't handle hidden reference to stack_chk_fail_local. +(note: this code is only happening if targeting i386) + +--- gcc/targhooks.c.orig 2013-01-10 20:38:27.000000000 +0000 ++++ gcc/targhooks.c +@@ -692,7 +692,7 @@ default_external_stack_protect_fail (voi + tree + default_hidden_stack_protect_fail (void) + { +-#ifndef HAVE_GAS_HIDDEN ++#if !defined(HAVE_GAS_HIDDEN) || defined(__NetBSD__) || defined(__sun) + return default_external_stack_protect_fail (); + #else + tree t = stack_chk_fail_decl; |