bzip2: fix PIE build.
This commit is contained in:
parent
76f538e1b5
commit
2e98186309
1 changed files with 4 additions and 6 deletions
|
@ -1,9 +1,8 @@
|
|||
# Template build file for 'bzip2'.
|
||||
pkgname=bzip2
|
||||
version=1.0.6
|
||||
revision=9
|
||||
revision=10
|
||||
bootstrap=yes
|
||||
replaces="chroot-bzip2>=0"
|
||||
homepage="http://www.bzip.org"
|
||||
distfiles="http://www.bzip.org/$version/$pkgname-$version.tar.gz"
|
||||
short_desc="The bzip2 compression library"
|
||||
|
@ -12,8 +11,8 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|||
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
|
||||
|
||||
do_build() {
|
||||
make ${makejobs} -f Makefile-libbz2_so
|
||||
make ${makejobs} bzip2recover libbz2.a
|
||||
make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so
|
||||
make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" bzip2recover libbz2.a
|
||||
}
|
||||
|
||||
do_install() {
|
||||
|
@ -36,11 +35,10 @@ do_install() {
|
|||
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzcat.1
|
||||
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzip2recover.1
|
||||
|
||||
vinstall LICENSE 644 usr/share/licenses/bzip2
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
bzip2-devel_package() {
|
||||
replaces="chroot-bzip2>=0"
|
||||
depends="bzip2>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
|
|
Loading…
Reference in a new issue