Commit 92f0c4a8 authored by Natanael Copa's avatar Natanael Copa

main/valgrind: build fix for gcc-4.8

parent feacdad5
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=valgrind pkgname=valgrind
pkgver=3.8.1 pkgver=3.8.1
pkgrel=0 pkgrel=1
pkgdesc="A tool to help find memory-management problems in programs" pkgdesc="A tool to help find memory-management problems in programs"
url="http://valgrind.org/" url="http://valgrind.org/"
arch="all" arch="all"
...@@ -13,7 +13,7 @@ makedepends="sed paxctl pax-utils perl bash" ...@@ -13,7 +13,7 @@ makedepends="sed paxctl pax-utils perl bash"
# Don't strip the debug info off lib/valgrind/$platform/vgpreload*.so # Don't strip the debug info off lib/valgrind/$platform/vgpreload*.so
# in the installation tree. Either Valgrind won't work at all, or it # in the installation tree. Either Valgrind won't work at all, or it
# will still work if you do, but will generate less helpful error # will still work if you do, but will generate less helpful error
# messages. # messages.
options="!strip" options="!strip"
subpackages="$pkgname-dev $pkgname-doc" subpackages="$pkgname-dev $pkgname-doc"
source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2 source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2
...@@ -23,11 +23,10 @@ source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2 ...@@ -23,11 +23,10 @@ source="http://$pkgname.org/downloads/$pkgname-$pkgver.tar.bz2
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
local i for i in $source; do
for i in "$srcdir"/*.patch; do case $i in
[ -f "$i" ] || continue *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
msg "Applying $i" esac
patch -p1 < $i || return 1
done done
} }
...@@ -35,7 +34,8 @@ build() { ...@@ -35,7 +34,8 @@ build() {
cd "$_builddir" cd "$_builddir"
# fails to build with ccache # fails to build with ccache
export CC="gcc" export CC="gcc"
export CFLAGS="$CFLAGS -fno-stack-protector -fno-pie" export CFLAGS="$CFLAGS -fno-stack-protector"
export GCC_SPECS="hardenednopie.specs"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment