From 708e2c271ca8e4c73e53762ea20921344fbaf375 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 24 May 2016 15:44:01 +0200 Subject: [PATCH] pigz: pass LDFLAGS properly. --- srcpkgs/pigz/template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/srcpkgs/pigz/template b/srcpkgs/pigz/template index 573176ce784..4859eac2489 100644 --- a/srcpkgs/pigz/template +++ b/srcpkgs/pigz/template @@ -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 " @@ -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