dieharder: add _GNU_SOURCE to build with glibc>=2.20.

This commit is contained in:
Christian Neukirchen 2015-03-24 14:42:17 +01:00
parent 7b52b0e709
commit c7273d85f4
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'dieharder'
pkgname=dieharder
version=3.31.1
revision=1
revision=2
build_style=gnu-configure
disable_parallel_build=yes
makedepends="gsl-devel"
@ -12,6 +12,8 @@ homepage="http://www.phy.duke.edu/~rgb/General/dieharder.php"
distfiles="http://www.phy.duke.edu/~rgb/General/dieharder/${pkgname}-${version}.tgz"
checksum=6cff0ff8394c553549ac7433359ccfc955fb26794260314620dfa5e4cd4b727f
CFLAGS="-D_GNU_SOURCE"
post_configure() {
sed -i '/^AM_CPPFLAGS/s, -I \${includedir},,
s,-I${prefix}/include,,' Makefile */Makefile