diff options
author | Gonzalo Exequiel Pedone | 2024-03-22 20:18:54 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-03-22 20:18:54 -0300 |
commit | 92902383ec42e5ae8f0e15df0a52d55e544738af (patch) | |
tree | b894a1f6f0280666660c072d84523c370784aeaf | |
parent | 530c9e2697304dac4c3bc325121bc267af9a5b3c (diff) | |
download | aur-92902383ec42e5ae8f0e15df0a52d55e544738af.tar.gz |
Added -fPIC flag for x86.
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 17 |
2 files changed, 11 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = android-armv7a-eabi-bzip2 pkgdesc = A high-quality data compression program (android) pkgver = 1.0.8 - pkgrel = 2 + pkgrel = 3 url = http://sources.redhat.com/bzip2 arch = any license = custom @@ -16,4 +16,3 @@ pkgbase = android-armv7a-eabi-bzip2 sha1sums = bf7badf7e248e0ecf465d33c2f5aeec774209227 pkgname = android-armv7a-eabi-bzip2 - @@ -4,7 +4,7 @@ _android_arch=armv7a-eabi pkgname=android-${_android_arch}-bzip2 pkgver=1.0.8 -pkgrel=2 +pkgrel=3 pkgdesc="A high-quality data compression program (android)" arch=('any') url="http://sources.redhat.com/bzip2" @@ -15,24 +15,27 @@ makedepends=('android-environment' 'android-pkg-config') source=("https://fossies.org/linux/misc/bzip2-${pkgver}.tar.gz") sha1sums=('bf7badf7e248e0ecf465d33c2f5aeec774209227') -prepare() { - cd "$srcdir/bzip2-$pkgver" -} - build() { - cd "$srcdir"/bzip2-$pkgver + cd "$srcdir/bzip2-$pkgver" source android-env ${_android_arch} + export CFLAGS="${CFLAGS} -g -Wall -Winline -D_FILE_OFFSET_BITS=64" + + if [ "$_android_arch" = x86 ]; then + export CFLAGS="${CFLAGS} -fPIC" + fi + make libbz2.a \ CC=${ANDROID_CC} \ AR=${ANDROID_AR} \ RANLIB=${ANDROID_RANLIB} \ PREFIX=${ANDROID_PREFIX} \ + CFLAGS="${CFLAGS}" \ $MAKEFLAGS } package() { - cd "$srcdir"/bzip2-$pkgver + cd "$srcdir/bzip2-$pkgver" source android-env ${_android_arch} install -m755 -d "${pkgdir}"/${ANDROID_PREFIX_INCLUDE} |