time: unbreak cross musl; set _GNU_SOURCE and override wait3 test.

Thanks @pullmoll
This commit is contained in:
Juan RP 2015-10-28 17:12:38 +01:00
parent 29b95dbcf1
commit bfcc741398
2 changed files with 7 additions and 1 deletions

View file

@ -163,3 +163,6 @@ compat_cv_func_makedev_three_args=no
# exo
ac_cv_strftime_extensions=yes
# time
ac_cv_func_wait3=yes

View file

@ -1,7 +1,7 @@
# Template file for 'time'
pkgname=time
version=1.7
revision=6
revision=7
build_style=gnu-configure
short_desc="The GNU time program for measuring cpu resource usage"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
@ -10,6 +10,9 @@ license="GPL-2"
distfiles="$GNU_SITE/$pkgname/$pkgname-$version.tar.gz"
checksum=e37ea79a253bf85a85ada2f7c632c14e481a5fd262a362f6f4fd58e68601496d
# Required by wait3(2) with musl
CFLAGS="-D_GNU_SOURCE"
do_install() {
make bindir="${DESTDIR}/usr/bin" infodir="${DESTDIR}/usr/share/info" install
}