mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-15 03:23:50 +02:00
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'.
|
# Template build file for 'bzip2'.
|
||||||
pkgname=bzip2
|
pkgname=bzip2
|
||||||
version=1.0.6
|
version=1.0.6
|
||||||
revision=9
|
revision=10
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
replaces="chroot-bzip2>=0"
|
|
||||||
homepage="http://www.bzip.org"
|
homepage="http://www.bzip.org"
|
||||||
distfiles="http://www.bzip.org/$version/$pkgname-$version.tar.gz"
|
distfiles="http://www.bzip.org/$version/$pkgname-$version.tar.gz"
|
||||||
short_desc="The bzip2 compression library"
|
short_desc="The bzip2 compression library"
|
||||||
|
@ -12,8 +11,8 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
|
checksum=a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
make ${makejobs} -f Makefile-libbz2_so
|
make ${makejobs} CFLAGS="$CFLAGS -fPIC $LDFLAGS" LDFLAGS="$LDFLAGS" -f Makefile-libbz2_so
|
||||||
make ${makejobs} bzip2recover libbz2.a
|
make ${makejobs} CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" bzip2recover libbz2.a
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
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/bzcat.1
|
||||||
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzip2recover.1
|
ln -sf bzip2.1 ${DESTDIR}/usr/share/man/man1/bzip2recover.1
|
||||||
|
|
||||||
vinstall LICENSE 644 usr/share/licenses/bzip2
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
bzip2-devel_package() {
|
bzip2-devel_package() {
|
||||||
replaces="chroot-bzip2>=0"
|
|
||||||
depends="bzip2>=${version}_${revision}"
|
depends="bzip2>=${version}_${revision}"
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue