pkgutils: use pkg-config to determine LDFLAGS for static linking

This commit is contained in:
Juergen Daubert 2010-06-03 10:53:29 +00:00
parent e0af064dcb
commit 018d355daf

View File

@ -5,10 +5,11 @@
name=pkgutils
version=5.34.2
release=1
release=2
source=(http://crux.nu/files/$name-$version.tar.gz)
build () {
cd $name-$version
make DESTDIR=$PKG install
LDFLAGS="-static $(pkg-config --libs --static libarchive)" \
make DESTDIR=$PKG install
}