summaryrefslogtreecommitdiff
path: root/core/gcc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-21 23:14:35 +0000
committerroot <root@rshg054.dnsready.net>2011-08-21 23:14:35 +0000
commite9a5c646563c984f362db1777f8c6bc7da63a4ab (patch)
tree709694a1605c0b60dc9c0c57718e7fd661924646 /core/gcc
parent839141249778baa4dba0f0511c52b5eded3cd934 (diff)
Sun Aug 21 23:14:34 UTC 2011
Diffstat (limited to 'core/gcc')
-rw-r--r--core/gcc/PKGBUILD12
1 files changed, 10 insertions, 2 deletions
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD
index ecba694b3..a5ac9be2b 100644
--- a/core/gcc/PKGBUILD
+++ b/core/gcc/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 130912 2011-07-09 03:10:41Z allan $
+# $Id: PKGBUILD 135922 2011-08-20 07:14:22Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# toolchain build order: linux-api-headers->glibc->binutils->gcc->binutils->glibc
@@ -6,7 +6,7 @@
pkgname=('gcc' 'gcc-libs' 'gcc-fortran' 'gcc-objc' 'gcc-ada' 'gcc-go')
pkgver=4.6.1
-pkgrel=2
+pkgrel=3
#_snapshot=4.6-20110603
_libstdcppmanver=20110201 # Note: check source directory name when updating this
pkgdesc="The GNU Compiler Collection"
@@ -66,6 +66,14 @@ build() {
--disable-multilib --disable-libstdcxx-pch \
--enable-checking=release
make
+
+ # rebuild libssp without -fstack-protector and -D_FORTIFY_SOURCE=2
+ # adjusting Makefile.in prior to build still results in these leaking through (yay libtool...)
+ cd $CHOST/libssp
+ sed -i -e "s#-fstack-protector#-fno-stack-protector#" \
+ -e "s#-D_FORTIFY_SOURCE=2#-U_FORTIFY_SOURCE#" Makefile
+ make clean
+ make
}
check() {