2015-07-11 16:04:45 +00:00
|
|
|
# $id$
|
|
|
|
# Maintainer: Sébastien Luttringer
|
|
|
|
# Contributor: Lawrence Lee <valheru@facticius.net>
|
|
|
|
# Contributor: Phillip Marvin <phillip.marvin@gmail.com>
|
|
|
|
# Contributor: keystone <phillip.marvin@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - aarch64 support patch
|
2015-10-01 00:21:39 +00:00
|
|
|
# - build v5 with system libatomic_ops
|
2015-07-11 16:04:45 +00:00
|
|
|
|
|
|
|
pkgname=libunwind
|
|
|
|
pkgver=1.1
|
2015-09-30 23:43:52 +00:00
|
|
|
pkgrel=3
|
2015-07-11 16:04:45 +00:00
|
|
|
pkgdesc='Portable and efficient C programming interface (API) to determine the call-chain of a program'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url='http://www.nongnu.org/libunwind/'
|
|
|
|
license=('GPL')
|
|
|
|
depends=('glibc' 'xz')
|
2015-10-01 00:21:39 +00:00
|
|
|
depends_arm=('libatomic_ops')
|
2015-07-11 16:04:45 +00:00
|
|
|
source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
|
2015-09-30 23:43:52 +00:00
|
|
|
'001-invalid-dwarf-opcodes-can-cause-references-beyond.patch'
|
2015-07-11 16:04:45 +00:00
|
|
|
'libunwind-aarch64.patch')
|
|
|
|
md5sums=('fb4ea2f6fbbe45bf032cd36e586883ce'
|
2015-09-30 23:43:52 +00:00
|
|
|
'73db2376e195a716f271ebce6bb7e5c0'
|
2015-07-11 16:04:45 +00:00
|
|
|
'5dd4c2661baa949389259a027d3b89e2')
|
|
|
|
|
|
|
|
prepare() {
|
2015-09-30 23:43:52 +00:00
|
|
|
patch -p1 -d $pkgname-$pkgver < 001-invalid-dwarf-opcodes-can-cause-references-beyond.patch
|
|
|
|
|
2015-07-11 16:04:45 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 -i ../libunwind-aarch64.patch
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2015-10-01 00:21:39 +00:00
|
|
|
|
|
|
|
[[ $CARCH == "arm" ]] && LDFLAGS+=" -latomic_ops" && CFLAGS+=" -DAO_USE_PTHREAD_DEFS=1"
|
|
|
|
|
2015-07-11 16:04:45 +00:00
|
|
|
./configure CFLAGS="$CFLAGS -U_FORTIFY_SOURCE" --prefix=/usr
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
# This function is ``supposed'' to fail. Upstream know, but haven't fixed it.
|
|
|
|
make check || return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|