Commit 72d9adca authored by Natanael Copa's avatar Natanael Copa
Browse files

main/gc: upgrade to 7.2

parent b2d91552
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gc
pkgver=7.1
pkgrel=2
pkgver=7.2
pkgrel=0
pkgdesc="A garbage collector for C and C++"
url="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
arch="all"
......@@ -9,12 +9,10 @@ license="GPL"
depends=
makedepends=
subpackages="$pkgname-dev $pkgname-doc libgc++:libgccpp"
source="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-$pkgver.tar.gz
uclibc-getcontext.patch"
source="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-$pkgver.tar.gz"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
patch -p1 -i "$srcdir"/uclibc-getcontext.patch || return 1
}
build() {
......@@ -36,5 +34,4 @@ libgccpp() {
mv "$pkgdir"/usr/lib/libgccpp.* "$subpkgdir"/usr/lib/
}
md5sums="2ff9924c7249ef7f736ecfe6f08f3f9b gc-7.1.tar.gz
bce75c75bf0cdb295ac0bf7ba0f6e267 uclibc-getcontext.patch"
md5sums="d17aecedef3d73e75387fb63558fa4eb gc-7.2.tar.gz"
--- ./mach_dep.c.orig
+++ ./mach_dep.c
@@ -175,7 +175,7 @@
# if defined(HAVE_PUSH_REGS)
GC_push_regs();
# elif defined(UNIX_LIKE) && !defined(DARWIN) && !defined(ARM32) && \
- !defined(HURD)
+ !defined(HURD) && !defined(__UCLIBC__)
/* Older versions of Darwin seem to lack getcontext(). */
/* ARM Linux often doesn't support a real getcontext(). */
ucontext_t ctxt;
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