lockdev: unbreak musl.

This commit is contained in:
Andrea Brancaleoni 2015-06-21 18:46:40 +02:00
parent bd5b939447
commit 081307a51b

View File

@ -1,7 +1,7 @@
# Template file for 'lockdev'
pkgname=lockdev
version=1.0.3
revision=4
revision=5
short_desc="Run-time shared library for locking devices"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://packages.qa.debian.org/l/lockdev.html"
@ -10,6 +10,10 @@ distfiles="${DEBIAN_SITE}/main/l/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82
do_build() {
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS+=" -D__GNU_LIBRARY__"
;;
esac
make CC=$CC shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
make CC=$CC static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
}