summaryrefslogtreecommitdiff
path: root/lang/gcc48
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-07-10 15:55:40 +0000
committermaya <maya@pkgsrc.org>2017-07-10 15:55:40 +0000
commitee6e8394df52094bbab4f0c63e3f348f2e7093ea (patch)
tree5040c913a0aa4b79ae76cda9ea0d47307c3c17d2 /lang/gcc48
parentf53f3ea27bef439a8b81c32a92dc2e5b6a061576 (diff)
downloadpkgsrc-ee6e8394df52094bbab4f0c63e3f348f2e7093ea.tar.gz
gcc{48,49}: netbsd also provides libssp in libc, adjust LINK_SSP_SPEC accordingly.
already done for newer versions of gcc. Now on netbsd all gcc packages can successfully build with -fstack-protector. bump pkgrevision (sorry)
Diffstat (limited to 'lang/gcc48')
-rw-r--r--lang/gcc48/Makefile4
-rw-r--r--lang/gcc48/distinfo4
-rw-r--r--lang/gcc48/patches/patch-gcc_configure18
3 files changed, 19 insertions, 7 deletions
diff --git a/lang/gcc48/Makefile b/lang/gcc48/Makefile
index fed061c7226..5105a51b749 100644
--- a/lang/gcc48/Makefile
+++ b/lang/gcc48/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.35 2017/07/09 05:30:41 maya Exp $
+# $NetBSD: Makefile,v 1.36 2017/07/10 15:55:40 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= 2
+PKGREVISION= 3
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 c4286a23de1..96b2f8b3d01 100644
--- a/lang/gcc48/distinfo
+++ b/lang/gcc48/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.34 2017/05/28 01:00:20 maya Exp $
+$NetBSD: distinfo,v 1.35 2017/07/10 15:55:40 maya Exp $
SHA1 (ecj-4.5.jar) = 58c1d79c64c8cd718550f32a932ccfde8d1e6449
RMD160 (ecj-4.5.jar) = d3f4da657f086b6423f74e93f001132f4855368a
@@ -46,7 +46,7 @@ SHA1 (patch-gcc_config_openbsd.h) = 0090d48281c4973a18e8a70b2be9d2e999cca0a6
SHA1 (patch-gcc_config_openbsd.opt) = 08b01bc4d7e171c3ee2ce5638a5859cff50c8ff8
SHA1 (patch-gcc_config_sol2.h) = de6455ee88f281737501287759b7a83b8db05398
SHA1 (patch-gcc_config_x-netbsd) = 6dc3d78e26df62054ea29f98ca51592858e671e3
-SHA1 (patch-gcc_configure) = dcb136061bf36428d75b834ca53f0840a67ef186
+SHA1 (patch-gcc_configure) = 58f2688999a81a9cf1ef7c70f052f329e6b4fe7c
SHA1 (patch-gcc_doc_gcc.texi) = 0b6ea28f887efc78ebd2f450c3f59ee7eaa15117
SHA1 (patch-gcc_fortran_f95-lang.c) = 8dc0a1728fd0521caf71a4f5c2eb938340f20efa
SHA1 (patch-gcc_ggc-common.c) = fa577bc25260d7e6304f166686ba51c0b677d7f6
diff --git a/lang/gcc48/patches/patch-gcc_configure b/lang/gcc48/patches/patch-gcc_configure
index 35e2b0395ef..d3d451c0d61 100644
--- a/lang/gcc48/patches/patch-gcc_configure
+++ b/lang/gcc48/patches/patch-gcc_configure
@@ -1,12 +1,24 @@
-$NetBSD: patch-gcc_configure,v 1.3 2014/11/28 09:57:32 obache Exp $
+$NetBSD: patch-gcc_configure,v 1.4 2017/07/10 15:55:40 maya Exp $
Add dl_iterate_phdr detection for FreeBSD and DragonFly.
Detection for NetBSD and OpenBSD is added but commented out in case this
error handling mechanism is activated for these platforms later.
+netbsd provides ssp in libc and doesn't build libssp, adjust ssp spec fragment
+for it too
+
--- gcc/configure.orig 2014-04-28 10:05:29.000000000 +0000
+++ gcc/configure
-@@ -26864,6 +26864,7 @@ else
+@@ -26886,7 +26886,7 @@ else
+ # simply assert that glibc does provide this, which is true for all
+ # realistically usable GNU/Hurd configurations.
+ gcc_cv_libc_provides_ssp=yes;;
+- *-*-darwin* | *-*-freebsd*)
++ *-*-darwin* | *-*-freebsd* | *-*-netbsd*)
+ ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
+ if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
+ gcc_cv_libc_provides_ssp=yes
+@@ -26895,6 +26895,7 @@ else
fi
;;
@@ -14,7 +26,7 @@ error handling mechanism is activated for these platforms later.
*) gcc_cv_libc_provides_ssp=no ;;
esac
fi
-@@ -26936,6 +26937,20 @@ case "$target" in
+@@ -26967,6 +26968,20 @@ case "$target" in
gcc_cv_target_dl_iterate_phdr=no
fi
;;