pigz: pass LDFLAGS properly.

This commit is contained in:
Christian Neukirchen 2016-05-24 15:44:01 +02:00
parent eb1cb78ae0
commit 708e2c271c
1 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'pigz'
pkgname=pigz
version=2.3.3
revision=2
revision=3
makedepends="zlib-devel"
short_desc="A parallel implementation of gzip"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -10,9 +10,11 @@ license="zlib"
distfiles="http://zlib.net/pigz/pigz-${version}.tar.gz"
checksum=4e8b67b432ce7907575a549f3e1cac4709781ba0f6b48afea9f59369846b509c
post_extract() {
sed -i '/CC.*-o/{s/$(LDFLAGS)//; s/$/ $(LDFLAGS)/}' Makefile
}
do_build() {
sed -e 's|-lz|& -lm|' -i Makefile
make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -lz" ${makejobs}
}
do_install() {
vbin pigz