time: unbreak cross musl; set _GNU_SOURCE and override wait3 test.
Thanks @pullmoll
This commit is contained in:
parent
29b95dbcf1
commit
bfcc741398
2 changed files with 7 additions and 1 deletions
|
@ -163,3 +163,6 @@ compat_cv_func_makedev_three_args=no
|
||||||
|
|
||||||
# exo
|
# exo
|
||||||
ac_cv_strftime_extensions=yes
|
ac_cv_strftime_extensions=yes
|
||||||
|
|
||||||
|
# time
|
||||||
|
ac_cv_func_wait3=yes
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'time'
|
# Template file for 'time'
|
||||||
pkgname=time
|
pkgname=time
|
||||||
version=1.7
|
version=1.7
|
||||||
revision=6
|
revision=7
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
short_desc="The GNU time program for measuring cpu resource usage"
|
short_desc="The GNU time program for measuring cpu resource usage"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -10,6 +10,9 @@ license="GPL-2"
|
||||||
distfiles="$GNU_SITE/$pkgname/$pkgname-$version.tar.gz"
|
distfiles="$GNU_SITE/$pkgname/$pkgname-$version.tar.gz"
|
||||||
checksum=e37ea79a253bf85a85ada2f7c632c14e481a5fd262a362f6f4fd58e68601496d
|
checksum=e37ea79a253bf85a85ada2f7c632c14e481a5fd262a362f6f4fd58e68601496d
|
||||||
|
|
||||||
|
# Required by wait3(2) with musl
|
||||||
|
CFLAGS="-D_GNU_SOURCE"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
make bindir="${DESTDIR}/usr/bin" infodir="${DESTDIR}/usr/share/info" install
|
make bindir="${DESTDIR}/usr/bin" infodir="${DESTDIR}/usr/share/info" install
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue