mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-15 19:43:50 +02:00
lockdev: unbreak musl.
This commit is contained in:
parent
bd5b939447
commit
081307a51b
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'lockdev'
|
# Template file for 'lockdev'
|
||||||
pkgname=lockdev
|
pkgname=lockdev
|
||||||
version=1.0.3
|
version=1.0.3
|
||||||
revision=4
|
revision=5
|
||||||
short_desc="Run-time shared library for locking devices"
|
short_desc="Run-time shared library for locking devices"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://packages.qa.debian.org/l/lockdev.html"
|
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
|
checksum=ccae635d7ac3fdd50897eceb250872b3d9a191d298f213e7f0c836910d869f82
|
||||||
|
|
||||||
do_build() {
|
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 shared CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
|
||||||
make CC=$CC static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
|
make CC=$CC static CFLAGS="${CFLAGS} -D_PATH_LOCK=\\\"/run/lock/lockdev\\\" -fPIC"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue