mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
extra/libunwind: v5 fix
This commit is contained in:
parent
c0e22daf94
commit
5a406400be
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - aarch64 support patch
|
||||
# - build v5 with system libatomic_ops
|
||||
|
||||
pkgname=libunwind
|
||||
pkgver=1.1
|
||||
|
@ -15,6 +16,7 @@ arch=('i686' 'x86_64')
|
|||
url='http://www.nongnu.org/libunwind/'
|
||||
license=('GPL')
|
||||
depends=('glibc' 'xz')
|
||||
depends_arm=('libatomic_ops')
|
||||
source=("http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||
'001-invalid-dwarf-opcodes-can-cause-references-beyond.patch'
|
||||
'libunwind-aarch64.patch')
|
||||
|
@ -32,6 +34,9 @@ prepare() {
|
|||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
[[ $CARCH == "arm" ]] && LDFLAGS+=" -latomic_ops" && CFLAGS+=" -DAO_USE_PTHREAD_DEFS=1"
|
||||
|
||||
./configure CFLAGS="$CFLAGS -U_FORTIFY_SOURCE" --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue