From 95e14dfb7e2c9afef0792f0d8546fa9dded8876b Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 21 Jun 2016 01:11:16 +0200 Subject: [PATCH] plan9port: respect LDFLAGS. --- srcpkgs/plan9port/template | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/srcpkgs/plan9port/template b/srcpkgs/plan9port/template index 616874789d8..2ea601594cc 100644 --- a/srcpkgs/plan9port/template +++ b/srcpkgs/plan9port/template @@ -1,7 +1,7 @@ # Template file for 'plan9port' pkgname=plan9port version=20160418 -revision=2 +revision=3 _githash=35d43924484b88b9816e40d2f6bff4547f3eec47 wrksrc="${pkgname}-${_githash}" hostmakedepends="which perl" @@ -14,6 +14,16 @@ distfiles="https://github.com/9fans/plan9port/archive/${_githash}.tar.gz" checksum=21b0d8ccb79975e49cb16a809c51557e5fe1659061591d1098544e0c5dea1d38 nocross=yes +post_extract() { + # add missing LDFLAGS for some rules + sed -i '/prereq$/s/$/ $LDFLAGS/' \ + src/cmd/auth/factotum/mkfile \ + src/cmd/auth/secstore/mkfile \ + src/cmd/devdraw/mkfile \ + src/cmd/faces/mkfile \ + src/cmd/mkfile + sed -i 's/-lX11$/& $LDFLAGS/g' src/cmd/rio/mkfile +} do_build() { CFLAGS+=' -D_DEFAULT_SOURCE' echo "CFLAGS='$CFLAGS'" >LOCAL.config