plan9port: respect LDFLAGS.
This commit is contained in:
parent
78c410f9c4
commit
95e14dfb7e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue